mirror of
https://github.com/chatmail/core.git
synced 2026-04-02 05:22:14 +03:00
Do not convert 1 to libc::c_int
It is compared to u32 in this case
This commit is contained in:
committed by
holger krekel
parent
eba012b965
commit
8479c8afbf
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user