From 97e1fbc1983799010e6daaf32d01b3b1bd7f082d Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Tue, 1 Oct 2019 12:42:03 +0200 Subject: [PATCH] move contact-requests to beginning of chatlists contact-requests of non-blocked senders are shown in the chatlist, so that the user gets aware of them without opening the contact-request-chat. however, for that, the contact-request virtual-chat-id must be added to the beginning of the list, otherwise it won't get noticed by the user. --- src/chatlist.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chatlist.rs b/src/chatlist.rs index bf5e542f1..d27e67eeb 100644 --- a/src/chatlist.rs +++ b/src/chatlist.rs @@ -182,7 +182,7 @@ impl Chatlist { if 0 == listflags & DC_GCL_NO_SPECIALS { let last_deaddrop_fresh_msg_id = get_last_deaddrop_fresh_msg(context); if last_deaddrop_fresh_msg_id > 0 { - ids.push((1, last_deaddrop_fresh_msg_id)); + ids.insert(0, (DC_CHAT_ID_DEADDROP, last_deaddrop_fresh_msg_id)); } add_archived_link_item = 1; }