show error on channel loading

This commit is contained in:
Salvatore Giordano
2020-03-13 14:34:01 +01:00
parent 721e4f37c1
commit 031f85edf6
6 changed files with 35 additions and 27 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ class ChannelPreview extends StatelessWidget {
return SizedBox();
}
String text = lastMessage.text;
var text = lastMessage.text;
if (lastMessage.isDeleted) {
text = 'This message was deleted.';
} else if (lastMessage.attachments != null) {