mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 15:06:30 +03:00
make to_ids const in some places, and simplify returns from create_or_lookup_adhoc_group
This commit is contained in:
@@ -579,6 +579,10 @@ pub fn unblock(context: &Context, chat_id: u32) {
|
||||
}
|
||||
|
||||
pub fn set_blocking(context: &Context, chat_id: u32, new_blocking: Blocked) -> bool {
|
||||
if chat_id == 0 {
|
||||
warn!(context, "ignoring setting of Block-status for chat_id=0");
|
||||
return false;
|
||||
}
|
||||
sql::execute(
|
||||
context,
|
||||
&context.sql,
|
||||
|
||||
Reference in New Issue
Block a user