aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2019-04-26 21:46:58 +0200
committerChristian Schneppe <christian@pix-art.de>2019-04-26 21:46:58 +0200
commit5a4e1ada1459f14257b1695c42e20b378b574a74 (patch)
tree508cf1f96aaf12b50280f8760ef8de2a6488ef20 /src
parentec253a5a98c1244f6e77d24a96c552c5de51882b (diff)
use mediated invite on reinvite if user is not member
Diffstat (limited to 'src')
-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());