From 96c3f29437783cbb1e531e2922ff78ecd6d9b446 Mon Sep 17 00:00:00 2001 From: td Date: Tue, 28 May 2024 14:02:40 +0530 Subject: [PATCH] chore: make sure you also postLoad before setting the famedly call event --- lib/src/voip/utils/famedly_call_extension.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/voip/utils/famedly_call_extension.dart b/lib/src/voip/utils/famedly_call_extension.dart index 23719e2d..0d9967bc 100644 --- a/lib/src/voip/utils/famedly_call_extension.dart +++ b/lib/src/voip/utils/famedly_call_extension.dart @@ -120,6 +120,7 @@ extension FamedlyCallMemberEventsExtension on Room { } Future setFamedlyCallMemberEvent(Map newContent) async { + await postLoad(); if (canJoinGroupCall) { await client.setRoomStateWithKey( id, @@ -130,7 +131,7 @@ extension FamedlyCallMemberEventsExtension on Room { } else { throw MatrixSDKVoipException( ''' - User ${client.userID}:${client.deviceID} is not allowed to join famedly calls in room $id, + User ${client.userID}:${client.deviceID} is not allowed to send com.famedly.call.member events in room $id, canJoinGroupCall: $canJoinGroupCall, groupCallsEnabledForEveryone: $groupCallsEnabledForEveryone, needed: ${powerForChangingStateEvent(EventTypes.GroupCallMember)},