Skip to content

Commit f03bf1d

Browse files
committed
Check timestamps in get_chat_contacts
1 parent 6aa9815 commit f03bf1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/chat.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3440,7 +3440,7 @@ pub async fn get_chat_contacts(context: &Context, chat_id: ChatId) -> Result<Vec
34403440
FROM chats_contacts cc
34413441
LEFT JOIN contacts c
34423442
ON c.id=cc.contact_id
3443-
WHERE cc.chat_id=?
3443+
WHERE cc.chat_id=? AND cc.add_timestamp >= cc.remove_timestamp
34443444
ORDER BY c.id=1, c.last_seen DESC, c.id DESC;",
34453445
(chat_id,),
34463446
|row| row.get::<_, ContactId>(0),

0 commit comments

Comments
 (0)