Fix leaving the group

This commit is contained in:
link2xt
2021-12-30 12:51:10 +00:00
parent 87e3dead14
commit 12313543ca
2 changed files with 31 additions and 0 deletions

View File

@@ -1669,6 +1669,7 @@ async fn apply_group_changes(
if from_id > DC_CONTACT_ID_LAST_SPECIAL
&& !Contact::addr_equals_contact(context, &self_addr, from_id).await?
&& !chat::is_contact_in_chat(context, chat_id, from_id).await?
&& removed_id != Some(from_id)
{
chat::add_to_chat_contacts_table(context, chat_id, from_id).await?;
}