use mediated invite on reinvite if user is not member
This commit is contained in:
parent
bf7d50692c
commit
d04e2e99f3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue