Skip to content

Commit

Permalink
Merge pull request #7710 from vector-im/mauroromito/fix_for_confernce…
Browse files Browse the repository at this point in the history
…_terminated
  • Loading branch information
Velin92 authored Nov 14, 2023
2 parents 2bae2c9 + 925e3cf commit 5a0a0f9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
31 changes: 15 additions & 16 deletions Riot/Modules/Integrations/Widgets/Jitsi/JitsiViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -321,26 +321,25 @@ - (void)conferenceJoined:(NSDictionary *)data

- (void)conferenceTerminated:(NSDictionary *)data
{
// If the call is terminated by a moderator the error key contains the "conference.destroyed" value
if (data[kJitsiDataErrorKey] != nil)
{
MXLogDebug(@"[JitsiViewController] conferenceTerminated - data: %@", data);
}
else
{
dispatch_async(dispatch_get_main_queue(), ^{

// The conference is over. Let the delegate close this view controller.
if (self.delegate)
{
[self.delegate jitsiViewController:self dismissViewJitsiController:nil];
}
else
{
// Do it ourself
[self dismissViewControllerAnimated:YES completion:nil];
}
});
}

dispatch_async(dispatch_get_main_queue(), ^{

// The conference is over. Let the delegate close this view controller.
if (self.delegate)
{
[self.delegate jitsiViewController:self dismissViewJitsiController:nil];
}
else
{
// Do it ourself
[self dismissViewControllerAnimated:YES completion:nil];
}
});
}

- (void)enterPictureInPicture:(NSDictionary *)data
Expand Down
1 change: 1 addition & 0 deletions changelog.d/7709.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
If a moderator ends a Jitsi call for everyone the call is now dismissed.

0 comments on commit 5a0a0f9

Please sign in to comment.