Skip to content

Commit 8861226

Browse files
authored
Merge branch 'main' into release-please--branches--main--components--nebuchadnezzar
2 parents a8f34c1 + 6370d36 commit 8861226

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/chat_room/input/draft_model.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class DraftModel extends SafeChangeNotifier {
5959
printMessageInDebugMode(e, s);
6060
}
6161

62-
final textDraft = '${getTextDraft(room.id)}';
62+
final textDraft = getTextDraft(room.id) ?? '';
6363
removeTextDraft(room.id);
6464
final matrixFiles = List<MatrixFile>.from(getFilesDraft(room.id));
6565
if (matrixFiles.isNotEmpty) {
@@ -87,7 +87,9 @@ class DraftModel extends SafeChangeNotifier {
8787
thumbnail: matrixFile.mimeType.startsWith('video') && xFile != null
8888
? await getVideoThumbnail(xFile)
8989
: null,
90-
extraContent: textDraft.isNotEmpty ? {'body': textDraft} : null,
90+
extraContent: textDraft.isNotEmpty && textDraft != 'null'
91+
? {'body': textDraft}
92+
: null,
9193
);
9294
if (eventId != null) {
9395
_matrixFilesToXFile.remove(matrixFile);

lib/encryption/view/unlock_chat_page.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import '../../common/view/snackbars.dart';
1414
import '../../common/view/space.dart';
1515
import '../../common/view/ui_constants.dart';
1616
import '../../l10n/l10n.dart';
17+
import '../../settings/view/chat_settings_logout_button.dart';
1718
import '../encryption_model.dart';
1819
import 'key_verification_dialog.dart';
1920

@@ -224,6 +225,7 @@ class _UnlockChatPageState extends State<UnlockChatPage> {
224225
);
225226
},
226227
),
228+
const ChatSettingsLogoutButton(),
227229
],
228230
),
229231
),

0 commit comments

Comments
 (0)