From 8479c8afbf6883d49dfa8e7a2d73560c1da80403 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Fri, 11 Oct 2019 03:28:38 +0300 Subject: [PATCH] Do not convert 1 to libc::c_int It is compared to u32 in this case --- src/chatlist.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chatlist.rs b/src/chatlist.rs index 608ff1bf9..b23662a01 100644 --- a/src/chatlist.rs +++ b/src/chatlist.rs @@ -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();