Skip to content

Commit 8e9c046

Browse files
committed
feat: Always allow non-DC reactions to create chats
This also unifies conditions for creating chats for chatmail and non-chatmail with `ShowEmails::All`. As for DC reaction messages, they don't contain extra parts, so they mustn't create chats.
1 parent c239da5 commit 8e9c046

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/receive_imf.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,9 @@ async fn add_parts(
781781
ShowEmails::All => allow_creation = !is_mdn,
782782
}
783783
} else {
784-
allow_creation = !is_mdn && !is_reaction;
784+
// DC reaction messages don't contain extra parts, so they mustn't create chats.
785+
let is_dc_reaction = is_dc_message == MessengerMessage::Yes && is_reaction;
786+
allow_creation = !is_mdn && !is_dc_reaction;
785787
}
786788

787789
// check if the message introduces a new chat:

0 commit comments

Comments
 (0)