aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/de/pixart/messenger/ui/util/MucDetailsContextMenuHelper.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/util/MucDetailsContextMenuHelper.java b/src/main/java/de/pixart/messenger/ui/util/MucDetailsContextMenuHelper.java
index b9876c4b4..7775bc114 100644
--- a/src/main/java/de/pixart/messenger/ui/util/MucDetailsContextMenuHelper.java
+++ b/src/main/java/de/pixart/messenger/ui/util/MucDetailsContextMenuHelper.java
@@ -182,7 +182,11 @@ public final class MucDetailsContextMenuHelper {
activity.privateMsgInMuc(conversation, user.getName());
return true;
case R.id.invite:
- activity.xmppConnectionService.directInvite(conversation, jid);
+ if (user.getAffiliation().ranks(MucOptions.Affiliation.MEMBER)) {
+ activity.xmppConnectionService.directInvite(conversation, jid);
+ } else {
+ activity.xmppConnectionService.invite(conversation, jid);
+ }
return true;
case R.id.highlight_in_muc:
activity.highlightInMuc(conversation, user.getName());