mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 18:28:40 +00:00
fix #165
This commit is contained in:
parent
a175435190
commit
aaa26cd256
1 changed files with 2 additions and 0 deletions
|
|
@ -125,6 +125,8 @@ class MessagesDao extends DatabaseAccessor<TwonlyDatabase>
|
||||||
return (update(messages)
|
return (update(messages)
|
||||||
..where((t) =>
|
..where((t) =>
|
||||||
t.contactId.equals(contactId) &
|
t.contactId.equals(contactId) &
|
||||||
|
t.messageOtherId
|
||||||
|
.isNull() & // only mark messages open that where send
|
||||||
t.openedAt.isNull() &
|
t.openedAt.isNull() &
|
||||||
t.kind.equals(MessageKind.media.name).not()))
|
t.kind.equals(MessageKind.media.name).not()))
|
||||||
.write(updates);
|
.write(updates);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue