Block voice calls in saved messages channel.

Add messages for desc / icon change for group chats.
This commit is contained in:
Paul
2021-05-14 22:44:35 +01:00
parent 6716a2d32b
commit 10f116b4a3
3 changed files with 28 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ impl<'a> PermissionCalculator<'a> {
match channel {
Channel::SavedMessages { user: owner, .. } => {
if &self.perspective.id == owner {
Ok(u32::MAX)
Ok(u32::MAX - ChannelPermission::VoiceCall as u32)
} else {
Ok(0)
}