mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 22:36:30 +03:00
Restore constant and remove parenthesis
This commit is contained in:
@@ -172,7 +172,7 @@ impl Chat {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if self.typ == Chattype::Group || self.typ == Chattype::VerifiedGroup {
|
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();
|
return context.stock_str(StockMessage::DeadDrop).into();
|
||||||
}
|
}
|
||||||
let cnt = get_chat_contact_cnt(context, self.id);
|
let cnt = get_chat_contact_cnt(context, self.id);
|
||||||
@@ -255,7 +255,7 @@ impl Chat {
|
|||||||
|
|
||||||
/// Returns true if chat is a verified group chat.
|
/// Returns true if chat is a verified group chat.
|
||||||
pub fn is_verified(&self) -> bool {
|
pub fn is_verified(&self) -> bool {
|
||||||
(self.typ == Chattype::VerifiedGroup)
|
self.typ == Chattype::VerifiedGroup
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns true if location streaming is enabled in the chat.
|
/// Returns true if location streaming is enabled in the chat.
|
||||||
|
|||||||
Reference in New Issue
Block a user