File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import '../../common/view/snackbars.dart';
1414import '../../common/view/space.dart' ;
1515import '../../common/view/ui_constants.dart' ;
1616import '../../l10n/l10n.dart' ;
17+ import '../../settings/view/chat_settings_logout_button.dart' ;
1718import '../encryption_model.dart' ;
1819import 'key_verification_dialog.dart' ;
1920
@@ -224,6 +225,7 @@ class _UnlockChatPageState extends State<UnlockChatPage> {
224225 );
225226 },
226227 ),
228+ const ChatSettingsLogoutButton (),
227229 ],
228230 ),
229231 ),
You can’t perform that action at this time.
0 commit comments