Jitsi widget: Display the hangup button when we are back-to-app

This commit is contained in:
manuroe
2017-08-11 14:59:05 +02:00
parent 1bdbe40c09
commit 0e3a8a9ce8
4 changed files with 30 additions and 2 deletions
@@ -73,6 +73,18 @@ static const NSString *kJitsiServerUrl = @"https://jitsi.riot.im/";
return (jitsiUrl != nil);
}
- (void)hangup
{
jitsiUrl = nil;
// It would have been nicer to ask JitsiMeetView but there is no api.
// Dismissing the view controller and releasing it does the job for the moment
if (_delegate)
{
[_delegate jitsiViewController:self dismissViewJitsiController:nil];
}
}
- (void)viewDidLoad
{
[super viewDidLoad];