Skip to content

Commit 39143a1

Browse files
committed
ignore tombstones in set_selfavatar_timestamp
1 parent 01dad76 commit 39143a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/chat.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,8 @@ impl ChatId {
364364
.sql
365365
.execute(
366366
"UPDATE contacts
367-
SET selfavatar_sent=?
368-
WHERE id IN(SELECT contact_id FROM chats_contacts WHERE chat_id=?);",
367+
SET selfavatar_sent=?
368+
WHERE id IN(SELECT contact_id FROM chats_contacts WHERE chat_id=? AND add_timestamp >= remove_timestamp)",
369369
(timestamp, self),
370370
)
371371
.await?;

0 commit comments

Comments
 (0)