mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +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
|
self.id
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else if self.typ == Chattype::Group
|
} else if (self.typ == Chattype::Group || self.typ == Chattype::VerifiedGroup)
|
||||||
|| self.typ == Chattype::VerifiedGroup
|
&& self.param.get_int(Param::Unpromoted).unwrap_or_default() == 1
|
||||||
&& self.param.get_int(Param::Unpromoted).unwrap_or_default() == 1
|
|
||||||
{
|
{
|
||||||
msg.param.set_int(Param::AttachGroupImage, 1);
|
msg.param.set_int(Param::AttachGroupImage, 1);
|
||||||
self.param.remove(Param::Unpromoted);
|
self.param.remove(Param::Unpromoted);
|
||||||
|
|||||||
Reference in New Issue
Block a user