chore: throw exception if you cannot send famedly call member event
This commit is contained in:
parent
d10befcac5
commit
39a8b8ce89
|
|
@ -128,8 +128,8 @@ extension FamedlyCallMemberEventsExtension on Room {
|
||||||
newContent,
|
newContent,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
Logs().w(
|
throw Exception(
|
||||||
'[VOIP] cannot send ${EventTypes.GroupCallMember} events in room: $id, fix your PLs');
|
'[VOIP] User is not allowed to send famedly call member events in room');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -773,7 +773,7 @@ class VoIP {
|
||||||
if (groupCall != null) {
|
if (groupCall != null) {
|
||||||
if (!room.canJoinGroupCall) {
|
if (!room.canJoinGroupCall) {
|
||||||
throw Exception(
|
throw Exception(
|
||||||
'User is not allowed to join famedly calls in the room');
|
'[VOIP] User is not allowed to join famedly calls in the room');
|
||||||
}
|
}
|
||||||
return groupCall;
|
return groupCall;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue