From e7351b1bb8d34c5f2e1aa6eda5399cb7c31e5b85 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Sun, 15 Dec 2019 14:20:39 +0100 Subject: [PATCH] Restore constant and remove parenthesis --- src/chat.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chat.rs b/src/chat.rs index 0e0876ee4..33a742e0d 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -172,7 +172,7 @@ impl Chat { } if self.typ == Chattype::Group || self.typ == Chattype::VerifiedGroup { - if self.id == 1 { + if self.id == DC_CHAT_ID_DEADDROP { return context.stock_str(StockMessage::DeadDrop).into(); } let cnt = get_chat_contact_cnt(context, self.id); @@ -255,7 +255,7 @@ impl Chat { /// Returns true if chat is a verified group chat. pub fn is_verified(&self) -> bool { - (self.typ == Chattype::VerifiedGroup) + self.typ == Chattype::VerifiedGroup } /// Returns true if location streaming is enabled in the chat.