mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 01:28:33 +00:00
Only admin can cancel any invite.
This commit is contained in:
parent
297a7d0ef8
commit
67a8ec0d39
@ -56,13 +56,13 @@ public class PendingMemberInvitesViewModel extends ViewModel {
|
||||
for (PendingMemberRepository.SinglePendingMemberInvitedByYou pendingMember : inviteeResult.getByMe()) {
|
||||
byMe.add(new GroupMemberEntry.PendingMember(pendingMember.getInvitee(),
|
||||
pendingMember.getInviteeCipherText(),
|
||||
true));
|
||||
inviteeResult.isCanCancelInvites()));
|
||||
}
|
||||
|
||||
for (PendingMemberRepository.MultiplePendingMembersInvitedByAnother pendingMembers : inviteeResult.getByOthers()) {
|
||||
byOthers.add(new GroupMemberEntry.UnknownPendingMemberCount(pendingMembers.getInviter(),
|
||||
pendingMembers.getUuidCipherTexts(),
|
||||
inviteeResult.isCanCancelOthersInvites()));
|
||||
inviteeResult.isCanCancelInvites()));
|
||||
}
|
||||
|
||||
setInvitees(byMe, byOthers);
|
||||
|
@ -114,15 +114,15 @@ final class PendingMemberRepository {
|
||||
public static final class InviteeResult {
|
||||
private final List<SinglePendingMemberInvitedByYou> byMe;
|
||||
private final List<MultiplePendingMembersInvitedByAnother> byOthers;
|
||||
private final boolean canCancelOthersInvites;
|
||||
private final boolean canCancelInvites;
|
||||
|
||||
private InviteeResult(List<SinglePendingMemberInvitedByYou> byMe,
|
||||
List<MultiplePendingMembersInvitedByAnother> byOthers,
|
||||
boolean canCancelOthersInvites)
|
||||
boolean canCancelInvites)
|
||||
{
|
||||
this.byMe = byMe;
|
||||
this.byOthers = byOthers;
|
||||
this.canCancelOthersInvites = canCancelOthersInvites;
|
||||
this.byMe = byMe;
|
||||
this.byOthers = byOthers;
|
||||
this.canCancelInvites = canCancelInvites;
|
||||
}
|
||||
|
||||
public List<SinglePendingMemberInvitedByYou> getByMe() {
|
||||
@ -133,8 +133,8 @@ final class PendingMemberRepository {
|
||||
return byOthers;
|
||||
}
|
||||
|
||||
public boolean isCanCancelOthersInvites() {
|
||||
return canCancelOthersInvites;
|
||||
public boolean isCanCancelInvites() {
|
||||
return canCancelInvites;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user