Widgets: Make sure we have a scalar token before opening one (#1723).

Make the build of the true widget URL asynchronous and build it only when necessary.
This commit is contained in:
manuroe
2018-01-04 11:49:39 +01:00
parent 78d19e7334
commit 83a51295aa
10 changed files with 125 additions and 82 deletions
@@ -26,8 +26,9 @@
/**
Init 'WidgetViewController' instance with a widget.
@param widgetUrl the formatted widget url.
@param widget the widget to open.
*/
- (instancetype)initForWidget:(Widget*)widget;
- (instancetype)initWithUrl:(NSString*)widgetUrl forWidget:(Widget*)widget;
@end