Merge branch 'krille/fix-null-checks' into 'main'

fix: Missing null checks in chat details view

See merge request famedly/fluffychat!968
This commit is contained in:
Krille Fear 2022-07-29 17:13:00 +00:00
commit 4571e476c0
1 changed files with 6 additions and 4 deletions

View File

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