mirror of
https://github.com/chatmail/core.git
synced 2026-05-19 14:56:33 +03:00
Do not emit notifications for blocked chats
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
### Changes
|
### Changes
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
|
- do not emit notifications for blocked chats #3557
|
||||||
|
|
||||||
|
|
||||||
## 1.93.0
|
## 1.93.0
|
||||||
|
|||||||
@@ -676,12 +676,17 @@ async fn add_parts(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
state =
|
state = if seen
|
||||||
if seen || fetching_existing_messages || is_mdn || location_kml_is || securejoin_seen {
|
|| fetching_existing_messages
|
||||||
MessageState::InSeen
|
|| is_mdn
|
||||||
} else {
|
|| location_kml_is
|
||||||
MessageState::InFresh
|
|| securejoin_seen
|
||||||
};
|
|| chat_id_blocked == Blocked::Yes
|
||||||
|
{
|
||||||
|
MessageState::InSeen
|
||||||
|
} else {
|
||||||
|
MessageState::InFresh
|
||||||
|
};
|
||||||
} else {
|
} else {
|
||||||
// Outgoing
|
// Outgoing
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user