mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Widgets permission: Some cleaning
This commit is contained in:
parent
d01ecca63c
commit
eca3ad7278
1 changed files with 4 additions and 2 deletions
|
@ -35,6 +35,8 @@ NSString *const kJavascriptSendResponseToPostMessageAPI = @"riotIOS.sendResponse
|
|||
|
||||
- (instancetype)initWithUrl:(NSString*)widgetUrl forWidget:(Widget*)theWidget
|
||||
{
|
||||
// The opening of the url is delayed in viewWillAppear where we will check
|
||||
// the widget permission
|
||||
self = [super initWithURL:nil];
|
||||
if (self)
|
||||
{
|
||||
|
@ -59,9 +61,9 @@ NSString *const kJavascriptSendResponseToPostMessageAPI = @"riotIOS.sendResponse
|
|||
}
|
||||
}
|
||||
|
||||
- (void)viewDidAppear:(BOOL)animated
|
||||
- (void)viewWillAppear:(BOOL)animated
|
||||
{
|
||||
[super viewDidAppear:animated];
|
||||
[super viewWillAppear:animated];
|
||||
|
||||
// Check widget permission before opening the widget
|
||||
[self checkWidgetPermissionWithCompletion:^(BOOL granted) {
|
||||
|
|
Loading…
Reference in a new issue