Do not convert 1 to libc::c_int

It is compared to u32 in this case
This commit is contained in:
Alexander Krotov
2019-10-11 03:28:38 +03:00
committed by holger krekel
parent eba012b965
commit 8479c8afbf

View File

@@ -270,7 +270,7 @@ impl Chatlist {
let lastmsg = if 0 != lastmsg_id {
if let Ok(lastmsg) = Message::load_from_db(context, lastmsg_id) {
if lastmsg.from_id != 1 as libc::c_uint
if lastmsg.from_id != 1
&& (chat.typ == Chattype::Group || chat.typ == Chattype::VerifiedGroup)
{
lastcontact = Contact::load_from_db(context, lastmsg.from_id).ok();