use mediated invite on reinvite if user is not member

This commit is contained in:
Daniel Gultsch 2019-04-11 08:57:20 +02:00
parent bf7d50692c
commit d04e2e99f3

View file

@ -179,7 +179,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;
default:
return false;