add mounted check to chat scroll
This commit is contained in:
parent
267309e84b
commit
3112871ceb
1 changed files with 2 additions and 0 deletions
|
|
@ -162,6 +162,8 @@ final class ChatScroll({
|
||||||
await paginate(.forward);
|
await paginate(.forward);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!hookContext.mounted || !scrollController.hasClients) return;
|
||||||
|
|
||||||
if (!isHistorical && position.extentBefore <= 0) await markRead();
|
if (!isHistorical && position.extentBefore <= 0) await markRead();
|
||||||
|
|
||||||
if (controllerData.isLoading == false &&
|
if (controllerData.isLoading == false &&
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue