Commit 985b96ae authored by Wilko Manger's avatar Wilko Manger

Fix encrypted chats rendering an error

parent c2cbb2f5
......@@ -36,7 +36,7 @@ abstract class Subtitle extends StatelessWidget {
final bool isMine;
Subtitle(this.event)
: isMine = event.sender.isIdenticalTo(di.getLocalUser()),
: isMine = event?.sender?.isIdenticalTo(di.getLocalUser()),
senderName =
event != null
&& !event.sender.isIdenticalTo(di.getLocalUser())
......
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