diff --git a/lib/src/voip/utils/famedly_call_extension.dart b/lib/src/voip/utils/famedly_call_extension.dart index 5f83a6f0..e7edbbe4 100644 --- a/lib/src/voip/utils/famedly_call_extension.dart +++ b/lib/src/voip/utils/famedly_call_extension.dart @@ -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'); } } diff --git a/lib/src/voip/voip.dart b/lib/src/voip/voip.dart index 7c3f6aa2..f4bfa366 100644 --- a/lib/src/voip/voip.dart +++ b/lib/src/voip/voip.dart @@ -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; }