From d0fca291ac319173268683bf316e1d708db930ee Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 14 Jul 2023 14:11:31 +0200 Subject: 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. --- xmpp-vala/src/module/xep/0045_muc/module.vala | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit v1.2.3-70-g09d2