Fehlerkorrekturen
This commit is contained in:
1 parent
5411da55b7
commit
4070fc81a6
6 files changed
+706
-26
No files matched your search
@@ -130,7 +130,7 @@ class _MessagesPageState extends State<MessagesPage> {
|
||||
}
|
||||
text = text.trim();
|
||||
|
||||
_messages.insert(0, types.TextMessage(
|
||||
_messages.add(types.TextMessage(
|
||||
author: message.from == _sid ? _user : _central,
|
||||
createdAt: DateTime
|
||||
.parse(message.time)
|
||||
@@ -139,6 +139,8 @@ class _MessagesPageState extends State<MessagesPage> {
|
||||
text: text,
|
||||
));
|
||||
|
||||
_messages.sort((a, b) => b.createdAt! > a.createdAt! ? 1 : 0);
|
||||
|
||||
message.read = true;
|
||||
MyApp.isarInstance.writeTxnSync(() {
|
||||
MyApp.isarInstance.messages.putSync(message);
|
||||
|
||||
Reference in new issue
Block a user