Added draft system for unsent messages

This commit is contained in:
2023-09-09 17:48:02 +02:00
parent 7a411a34c9
commit 68bfe92849
6 changed files with 42 additions and 9 deletions

View File

@ -6,8 +6,9 @@ part 'talkSettings.g.dart';
class TalkSettings {
bool sortFavoritesToTop;
bool sortUnreadToTop;
Map<String, String> drafts;
TalkSettings({required this.sortFavoritesToTop, required this.sortUnreadToTop});
TalkSettings({required this.sortFavoritesToTop, required this.sortUnreadToTop, required this.drafts});
factory TalkSettings.fromJson(Map<String, dynamic> json) => _$TalkSettingsFromJson(json);
Map<String, dynamic> toJson() => _$TalkSettingsToJson(this);