Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postLoad before setting famedly calls #1832

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/src/voip/utils/famedly_call_extension.dart
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ extension FamedlyCallMemberEventsExtension on Room {
}

Future<void> setFamedlyCallMemberEvent(Map<String, List> newContent) async {
await postLoad();
if (canJoinGroupCall) {
await client.setRoomStateWithKey(
id,
Expand All @@ -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)},
Expand Down
Loading