mirror of
https://github.com/chatmail/core.git
synced 2026-04-02 05:22:14 +03:00
&& has a higher precedence than || - fix a logical error when resetting Unpromoted
This commit is contained in:
committed by
holger krekel
parent
ff29b84146
commit
a8842da50a
@@ -310,9 +310,8 @@ impl Chat {
|
||||
self.id
|
||||
);
|
||||
}
|
||||
} else if self.typ == Chattype::Group
|
||||
|| self.typ == Chattype::VerifiedGroup
|
||||
&& self.param.get_int(Param::Unpromoted).unwrap_or_default() == 1
|
||||
} else if (self.typ == Chattype::Group || self.typ == Chattype::VerifiedGroup)
|
||||
&& self.param.get_int(Param::Unpromoted).unwrap_or_default() == 1
|
||||
{
|
||||
msg.param.set_int(Param::AttachGroupImage, 1);
|
||||
self.param.remove(Param::Unpromoted);
|
||||
|
||||
Reference in New Issue
Block a user