mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 02:16:29 +03:00
fix: do not apply group changes to special chats
This is a similar check to the one we have in `save_locations`.
This commit is contained in:
@@ -1723,6 +1723,10 @@ async fn apply_group_changes(
|
||||
to_ids: &[ContactId],
|
||||
is_partial_download: bool,
|
||||
) -> Result<Vec<String>> {
|
||||
if chat_id.is_special() {
|
||||
// Do not apply group changes to the trash chat.
|
||||
return Ok(Vec::new());
|
||||
}
|
||||
let mut chat = Chat::load_from_db(context, chat_id).await?;
|
||||
if chat.typ != Chattype::Group {
|
||||
return Ok(Vec::new());
|
||||
|
||||
Reference in New Issue
Block a user