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
@@ -52,9 +52,13 @@
@param widget the jitsi widget.
@param video to indicate voice or video call.
@return YES if the operation is successful.
@param success A block object called when the operation succeeds.
@param failure A block object called when the operation fails.
*/
- (BOOL)openWidget:(Widget*)widget withVideo:(BOOL)video;
- (void)openWidget:(Widget*)widget withVideo:(BOOL)video
success:(void (^)())success
failure:(void (^)(NSError *error))failure;
/**
Hang up the jitsi conference call in progress.