Erweiterungen
This commit is contained in:
1 parent
7b580b37db
commit
57547c9116
1 file changed
+1
-2
@@ -101,7 +101,6 @@ class _MessagesPageState extends State<MessagesPage> {
|
||||
message.subj = '';
|
||||
message.time = now.toIso8601String();
|
||||
message.read = true;
|
||||
|
||||
message.id = await sbmessage.Message.getNextId();
|
||||
|
||||
MyApp.isarInstance.writeTxnSync(() {
|
||||
@@ -113,7 +112,7 @@ class _MessagesPageState extends State<MessagesPage> {
|
||||
_messages.insert(0, types.TextMessage(
|
||||
author: _user,
|
||||
createdAt: now.millisecondsSinceEpoch,
|
||||
id: const Uuid().v4().toString(),
|
||||
id: message.id.toString(),
|
||||
text: text.text,
|
||||
));
|
||||
|
||||
|
||||
Reference in new issue
Block a user