aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-07-14 14:11:31 +0200
committerfiaxh <fiaxh@users.noreply.github.com>2023-07-29 13:52:11 +0200
commitd0fca291ac319173268683bf316e1d708db930ee (patch)
treed36c64fd12135b9ed61b95a728a8755e2d147701
parent8c8c2dc4b0e08a2e6d73b45fba795d462595418f (diff)
downloaddino-d0fca291ac319173268683bf316e1d708db930ee.tar.gz
dino-d0fca291ac319173268683bf316e1d708db930ee.zip
Fix showing the kick option to owners
Missing case in the switch defaulted to returning false for Owners, thus preventing they with the most privileges from using those privileges.
-rw-r--r--xmpp-vala/src/module/xep/0045_muc/module.vala2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmpp-vala/src/module/xep/0045_muc/module.vala b/xmpp-vala/src/module/xep/0045_muc/module.vala
index f8ddb6d0..46abe303 100644
--- a/xmpp-vala/src/module/xep/0045_muc/module.vala
+++ b/xmpp-vala/src/module/xep/0045_muc/module.vala
@@ -203,6 +203,8 @@ public class Module : XmppStreamModule {
case Affiliation.ADMIN:
if (other_affiliation == Affiliation.OWNER) return false;
break;
+ case Affiliation.OWNER:
+ return true;
default:
return false;
}