mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 01:46:34 +03:00
add QR based join-group API, with test and SEGFAULT fix to rust
This commit is contained in:
@@ -1941,8 +1941,9 @@ pub unsafe fn get_chat_id_by_grpid(
|
||||
}
|
||||
|
||||
let v = row.get::<_, Option<Chattype>>(2)?.unwrap_or_default();
|
||||
*ret_verified = (v == Chattype::VerifiedGroup) as libc::c_int;
|
||||
|
||||
if !ret_verified.is_null() {
|
||||
*ret_verified = (v == Chattype::VerifiedGroup) as libc::c_int;
|
||||
}
|
||||
Ok(chat_id)
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user