mirror of
https://github.com/chatmail/core.git
synced 2026-05-10 18:36:29 +03:00
fix: Don't receive message if a deletion request was received before (#8143)
There's no check for `from_id` so another group member can delete the message, but this can only happen in case of message reordering and the problem already exists for usual messages, so we may ignore it and overall a group represents a scope of trust. Co-authored-by: Hocuri <hocuri@gmx.de>
This commit is contained in:
@@ -529,7 +529,7 @@ impl Message {
|
||||
FROM msgs m
|
||||
LEFT JOIN chats c ON c.id=m.chat_id
|
||||
LEFT JOIN msgs_mdns mdns ON mdns.msg_id=m.id
|
||||
WHERE m.id=? AND chat_id!=3
|
||||
WHERE m.id=? AND chat_id!=3 -- DC_CHAT_ID_TRASH
|
||||
LIMIT 1",
|
||||
(id,),
|
||||
|row| {
|
||||
|
||||
Reference in New Issue
Block a user