From 7aeddc63ac8901245029458db801748aa77741db Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Mon, 6 Jan 2020 00:20:32 +0100 Subject: [PATCH] Use DC_CHAT_ID_DEADDROP instead of constant "1" --- src/chat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chat.rs b/src/chat.rs index 6e28e8071..82e545933 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -1481,7 +1481,7 @@ pub fn get_chat_contacts(context: &Context, chat_id: u32) -> Vec { /* Normal chats do not include SELF. Group chats do (as it may happen that one is deleted from a groupchat but the chats stays visible, moreover, this makes displaying lists easier) */ - if chat_id == 1 { + if chat_id == DC_CHAT_ID_DEADDROP { return Vec::new(); }