mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 02:46:29 +03:00
Do not emit notifications for blocked chats
This commit is contained in:
@@ -676,12 +676,17 @@ async fn add_parts(
|
||||
}
|
||||
}
|
||||
|
||||
state =
|
||||
if seen || fetching_existing_messages || is_mdn || location_kml_is || securejoin_seen {
|
||||
MessageState::InSeen
|
||||
} else {
|
||||
MessageState::InFresh
|
||||
};
|
||||
state = if seen
|
||||
|| fetching_existing_messages
|
||||
|| is_mdn
|
||||
|| location_kml_is
|
||||
|| securejoin_seen
|
||||
|| chat_id_blocked == Blocked::Yes
|
||||
{
|
||||
MessageState::InSeen
|
||||
} else {
|
||||
MessageState::InFresh
|
||||
};
|
||||
} else {
|
||||
// Outgoing
|
||||
|
||||
|
||||
Reference in New Issue
Block a user