mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 19:06:35 +03:00
fixes #463
This commit is contained in:
committed by
holger krekel
parent
5b0c8dd9dd
commit
814281ed7d
@@ -1486,7 +1486,10 @@ pub unsafe fn remove_contact_from_chat(
|
||||
"bad chat_id = {} <= 9",
|
||||
chat_id
|
||||
);
|
||||
ensure!(contact_id != DC_CONTACT_ID_SELF, "Cannot remove self");
|
||||
ensure!(
|
||||
contact_id > DC_CONTACT_ID_LAST_SPECIAL || contact_id == DC_CONTACT_ID_SELF,
|
||||
"Cannot remove special contact"
|
||||
);
|
||||
|
||||
let mut msg = dc_msg_new_untyped(context);
|
||||
let mut success = false;
|
||||
|
||||
Reference in New Issue
Block a user