mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
fix
This commit is contained in:
parent
2bae2c97a6
commit
3b66fccc98
2 changed files with 16 additions and 16 deletions
|
@ -321,26 +321,25 @@ static NSString * _Nonnull kJitsiFeatureFlagScreenSharingEnabled = @"ios.screens
|
||||||
|
|
||||||
- (void)conferenceTerminated:(NSDictionary *)data
|
- (void)conferenceTerminated:(NSDictionary *)data
|
||||||
{
|
{
|
||||||
|
// If the call if terminated by a moderator the error key contains the "conference.destroyed" value
|
||||||
if (data[kJitsiDataErrorKey] != nil)
|
if (data[kJitsiDataErrorKey] != nil)
|
||||||
{
|
{
|
||||||
MXLogDebug(@"[JitsiViewController] conferenceTerminated - data: %@", data);
|
MXLogDebug(@"[JitsiViewController] conferenceTerminated - data: %@", data);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
dispatch_async(dispatch_get_main_queue(), ^{
|
|
||||||
|
|
||||||
// The conference is over. Let the delegate close this view controller.
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
if (self.delegate)
|
|
||||||
{
|
// The conference is over. Let the delegate close this view controller.
|
||||||
[self.delegate jitsiViewController:self dismissViewJitsiController:nil];
|
if (self.delegate)
|
||||||
}
|
{
|
||||||
else
|
[self.delegate jitsiViewController:self dismissViewJitsiController:nil];
|
||||||
{
|
}
|
||||||
// Do it ourself
|
else
|
||||||
[self dismissViewControllerAnimated:YES completion:nil];
|
{
|
||||||
}
|
// Do it ourself
|
||||||
});
|
[self dismissViewControllerAnimated:YES completion:nil];
|
||||||
}
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)enterPictureInPicture:(NSDictionary *)data
|
- (void)enterPictureInPicture:(NSDictionary *)data
|
||||||
|
|
1
changelog.d/7709.bugfix
Normal file
1
changelog.d/7709.bugfix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
If a moderator ends a Jitsi call for everyone the call is now dismissed.
|
Loading…
Reference in a new issue