From 39a8b8ce89f1840a8b86570890d6176d503c0ec7 Mon Sep 17 00:00:00 2001 From: td Date: Tue, 21 May 2024 15:07:44 +0530 Subject: [PATCH] chore: throw exception if you cannot send famedly call member event --- lib/src/voip/utils/famedly_call_extension.dart | 4 ++-- lib/src/voip/voip.dart | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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; }