Skip to content

Commit

Permalink
Merge pull request #64 from pangeachat/toolbar-testing
Browse files Browse the repository at this point in the history
Toolbar testing
  • Loading branch information
ggurdin authored Feb 12, 2024
2 parents a8cb93f + 9112ba9 commit c46c079
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/pangea/models/pangea_message_event.dart
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,10 @@ class PangeaMessageEvent {
.isToolEnabled(ToolSetting.immersionMode, room);
final String? l2Code = MatrixState.pangeaController.languageController
.activeL2Code(roomID: room.id);
final String? originalLangCode =
(originalWritten ?? originalSent)?.langCode;

final String? langCode = immersionMode ? l2Code : originalWritten?.langCode;
final String? langCode = immersionMode ? l2Code : originalLangCode;
return langCode ?? LanguageKeys.unknownLanguage;
}

Expand Down

0 comments on commit c46c079

Please sign in to comment.