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());
|
activity.privateMsgInMuc(conversation, user.getName());
|
||||||
return true;
|
return true;
|
||||||
case R.id.invite:
|
case R.id.invite:
|
||||||
|
if (user.getAffiliation().ranks(MucOptions.Affiliation.MEMBER)) {
|
||||||
activity.xmppConnectionService.directInvite(conversation, jid);
|
activity.xmppConnectionService.directInvite(conversation, jid);
|
||||||
|
} else {
|
||||||
|
activity.xmppConnectionService.invite(conversation, jid);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue