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
1 changed files with 5 additions and 1 deletions

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;