diff options
author | Christian Schneppe <christian@pix-art.de> | 2019-04-26 21:46:58 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2019-04-26 21:46:58 +0200 |
commit | 5a4e1ada1459f14257b1695c42e20b378b574a74 (patch) | |
tree | 508cf1f96aaf12b50280f8760ef8de2a6488ef20 /src/main/java/de/pixart/messenger/ui | |
parent | ec253a5a98c1244f6e77d24a96c552c5de51882b (diff) |
use mediated invite on reinvite if user is not member
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/util/MucDetailsContextMenuHelper.java | 6 |
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()); |