refactor(chat): remove c types and unsafe

This commit is contained in:
dignifiedquire
2019-09-21 15:20:30 +02:00
committed by holger krekel
parent 0bdcc3d616
commit e80345a05b
7 changed files with 93 additions and 89 deletions

View File

@@ -1005,14 +1005,14 @@ pub fn mdn_from_ext(
read_by_all = true;
} else {
// send event about new state
let ist_cnt: i32 = context
let ist_cnt = context
.sql
.query_get_value(
.query_get_value::<_, isize>(
context,
"SELECT COUNT(*) FROM msgs_mdns WHERE msg_id=?;",
params![*ret_msg_id as i32],
)
.unwrap_or_default();
.unwrap_or_default() as usize;
/*
Groupsize: Min. MDNs