Client: Added role change for free user.
This commit is contained in:
parent
a6f87e19c7
commit
91b3212529
@ -309,6 +309,14 @@ const InviteInput = ({
|
||||
});
|
||||
}
|
||||
|
||||
if (isPaidUserLimit && item.isVisitor && isPaidUserRole(item.access)) {
|
||||
const freeRole = getTopFreeRole(t, roomType)?.access;
|
||||
|
||||
if (freeRole) {
|
||||
item.access = freeRole;
|
||||
toastr.error(<PaidQuotaLimitError />);
|
||||
}
|
||||
}
|
||||
const items = removeExist([item, ...inviteItems]);
|
||||
setInviteItems(items);
|
||||
}
|
||||
@ -370,7 +378,11 @@ const InviteInput = ({
|
||||
});
|
||||
}
|
||||
|
||||
if (isPaidUserLimit && !u.avatar && isPaidUserRole(u.access)) {
|
||||
if (
|
||||
isPaidUserLimit &&
|
||||
(!u.avatar || u.isVisitor) &&
|
||||
isPaidUserRole(u.access)
|
||||
) {
|
||||
const freeRole = getTopFreeRole(t, roomType)?.access;
|
||||
|
||||
if (freeRole) {
|
||||
|
Loading…
Reference in New Issue
Block a user