mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 08:03:50 +02:00
Widgets: Attempt to re-register for a scalar token if ours is invalid
#2326 As the integration manager page (https://scalar-staging.riot.im/scalar-web) does not return a 403, check scalar token validity before opening it
This commit is contained in:
@@ -354,7 +354,7 @@ NSString *const kJavascriptSendResponseToPostMessageAPI = @"riotIOS.sendResponse
|
||||
[WidgetManager.sharedManager deleteDataForUser:widget.mxSession.myUser.userId];
|
||||
|
||||
MXWeakify(self);
|
||||
[WidgetManager.sharedManager getScalarTokenForMXSession:widget.mxSession success:^(NSString *scalarToken) {
|
||||
[WidgetManager.sharedManager getScalarTokenForMXSession:widget.mxSession validate:NO success:^(NSString *scalarToken) {
|
||||
MXStrongifyAndReturnIfNil(self);
|
||||
|
||||
NSLog(@"[WidgetVC] fixScalarToken: DONE");
|
||||
|
||||
Reference in New Issue
Block a user