From 5cf7e7f3ddeea552ca31d7eae26538cc388cc99b Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Fri, 24 Jan 2020 11:10:35 +0000 Subject: [PATCH] Update lib/views/chat.dart --- lib/views/chat.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/views/chat.dart b/lib/views/chat.dart index 21d8c420..829b929a 100644 --- a/lib/views/chat.dart +++ b/lib/views/chat.dart @@ -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 { 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();