mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-24 14:32:37 +01:00
Update lib/views/chat.dart
This commit is contained in:
parent
a9b9e80b28
commit
5cf7e7f3dd
@ -13,6 +13,7 @@ import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:image_picker/image_picker.dart';
|
||||
import 'package:toast/toast.dart';
|
||||
import 'package:pedantic/pedantic.dart';
|
||||
|
||||
import 'chat_list.dart';
|
||||
|
||||
@ -90,7 +91,7 @@ class _ChatState extends State<Chat> {
|
||||
if (timeline == null) {
|
||||
timeline = await room.getTimeline(onUpdate: updateView);
|
||||
if (timeline.events.isNotEmpty) {
|
||||
room.sendReadReceipt(timeline.events.first.eventId);
|
||||
unawaited(room.sendReadReceipt(timeline.events.first.eventId));
|
||||
}
|
||||
}
|
||||
updateView();
|
||||
|
Loading…
Reference in New Issue
Block a user