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

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