fix: Missing null checks in chat details view

This commit is contained in:
Christian Pauly 2022-07-29 18:52:41 +02:00
parent 18ebdc4602
commit c275c6a1c6

View File

@ -225,8 +225,9 @@ class ChatDetailsView extends StatelessWidget {
title: Text(L10n.of(context)! title: Text(L10n.of(context)!
.whoIsAllowedToJoinThisGroup), .whoIsAllowedToJoinThisGroup),
subtitle: Text( subtitle: Text(
room.joinRules!.getLocalizedString( room.joinRules?.getLocalizedString(
MatrixLocals(L10n.of(context)!)), MatrixLocals(L10n.of(context)!)) ??
L10n.of(context)!.none,
), ),
), ),
), ),
@ -276,8 +277,9 @@ class ChatDetailsView extends StatelessWidget {
title: Text(L10n.of(context)! title: Text(L10n.of(context)!
.visibilityOfTheChatHistory), .visibilityOfTheChatHistory),
subtitle: Text( subtitle: Text(
room.historyVisibility!.getLocalizedString( room.historyVisibility?.getLocalizedString(
MatrixLocals(L10n.of(context)!)), MatrixLocals(L10n.of(context)!)) ??
L10n.of(context)!.none,
), ),
), ),
), ),