fix: Wait for init before showing room on web start
This commit is contained in:
parent
8fe286e715
commit
4c129968f4
1 changed files with 2 additions and 0 deletions
|
|
@ -213,6 +213,8 @@ class ChatController extends State<Chat> {
|
||||||
|
|
||||||
Future<bool> getTimeline() async {
|
Future<bool> getTimeline() async {
|
||||||
if (timeline == null) {
|
if (timeline == null) {
|
||||||
|
await Matrix.of(context).client.roomsLoading;
|
||||||
|
await Matrix.of(context).client.accountDataLoading;
|
||||||
timeline = await room!.getTimeline(onUpdate: updateView);
|
timeline = await room!.getTimeline(onUpdate: updateView);
|
||||||
if (timeline!.events.isNotEmpty) {
|
if (timeline!.events.isNotEmpty) {
|
||||||
if (room!.markedUnread) room!.markUnread(false);
|
if (room!.markedUnread) room!.markUnread(false);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue