Do not emit notifications for blocked chats

This commit is contained in:
link2xt
2022-08-20 11:35:11 +00:00
parent e7957b1661
commit f79b16c244
2 changed files with 12 additions and 6 deletions

View File

@@ -7,6 +7,7 @@
### Changes ### Changes
### Fixes ### Fixes
- do not emit notifications for blocked chats #3557
## 1.93.0 ## 1.93.0

View File

@@ -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