chore: throw exception if you cannot send famedly call member event

This commit is contained in:
td 2024-05-21 15:07:44 +05:30
parent d10befcac5
commit 39a8b8ce89
No known key found for this signature in database
GPG Key ID: 62A30523D4D6CE28
2 changed files with 3 additions and 3 deletions

View File

@ -128,8 +128,8 @@ extension FamedlyCallMemberEventsExtension on Room {
newContent,
);
} else {
Logs().w(
'[VOIP] cannot send ${EventTypes.GroupCallMember} events in room: $id, fix your PLs');
throw Exception(
'[VOIP] User is not allowed to send famedly call member events in room');
}
}

View File

@ -773,7 +773,7 @@ class VoIP {
if (groupCall != null) {
if (!room.canJoinGroupCall) {
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;
}