mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 14:59:29 +01:00
fix: Wait for init before showing room on web start
This commit is contained in:
parent
f7b7c7add4
commit
236c5b1648
@ -213,6 +213,8 @@ class ChatController extends State<Chat> {
|
||||
|
||||
Future<bool> getTimeline() async {
|
||||
if (timeline == null) {
|
||||
await Matrix.of(context).client.roomsLoading;
|
||||
await Matrix.of(context).client.accountDataLoading;
|
||||
timeline = await room!.getTimeline(onUpdate: updateView);
|
||||
if (timeline!.events.isNotEmpty) {
|
||||
if (room!.markedUnread) room!.markUnread(false);
|
||||
|
Loading…
Reference in New Issue
Block a user