Skip to content

Commit eca088a

Browse files
committed
Check contact timestamps in regossip_keys
1 parent 66e4833 commit eca088a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/contact.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ impl ContactId {
114114
SET gossiped_timestamp=0
115115
WHERE EXISTS (SELECT 1 FROM chats_contacts
116116
WHERE chats_contacts.chat_id=chats.id
117-
AND chats_contacts.contact_id=?)",
117+
AND chats_contacts.contact_id=?
118+
AND chats_contacts.add_timestamp >= chats_contacts.remove_timestamp)",
118119
(self,),
119120
)
120121
.await?;

0 commit comments

Comments
 (0)