We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01dad76 commit 39143a1Copy full SHA for 39143a1
src/chat.rs
@@ -364,8 +364,8 @@ impl ChatId {
364
.sql
365
.execute(
366
"UPDATE contacts
367
- SET selfavatar_sent=?
368
- WHERE id IN(SELECT contact_id FROM chats_contacts WHERE chat_id=?);",
+ SET selfavatar_sent=?
+ WHERE id IN(SELECT contact_id FROM chats_contacts WHERE chat_id=? AND add_timestamp >= remove_timestamp)",
369
(timestamp, self),
370
)
371
.await?;
0 commit comments