add QR based join-group API, with test and SEGFAULT fix to rust

This commit is contained in:
holger krekel
2019-09-04 21:17:27 +02:00
parent 2e3269dedf
commit d2cb1658e3
4 changed files with 57 additions and 15 deletions

View File

@@ -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)
},
)