Commit a0b85249 authored by Wilko Manger's avatar Wilko Manger

Supply temporary fix for typingUsers having nulls

parent 4fcd539d
......@@ -112,7 +112,8 @@ class ChatPageState extends State<ChatPage> {
);
};
final title = room.isSomeoneElseTyping
// TODO: typingUsers should not contain nulls
final title = room.isSomeoneElseTyping && !room.typingUsers.any((u) => u == null)
? TitleWithSub(
title: ChatName(room: room),
subtitle: RichText(
......
......@@ -49,7 +49,8 @@ abstract class Subtitle extends StatelessWidget {
factory Subtitle.forChat(ChatOverview chat) {
if (chat.room.isSomeoneElseTyping) {
// TODO: typingUsers should not contain nulls
if (chat.room.isSomeoneElseTyping && !chat.room.typingUsers.any((u) => u == null)) {
return TypingSubtitle(chat.room);
} else {
final event = chat.latestEvent;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment