allow invite only when muc is online. fixes #4218

This commit is contained in:
Daniel Gultsch 2022-09-10 12:36:35 +02:00
parent 82316d13b0
commit 6e53ab3694

View file

@ -156,7 +156,8 @@ public class MucOptions {
}
public boolean canInvite() {
return !membersOnly() || self.getRole().ranks(Role.MODERATOR) || allowInvites();
final boolean hasPermission = !membersOnly() || self.getRole().ranks(Role.MODERATOR) || allowInvites();
return hasPermission && online();
}
public boolean allowInvites() {