mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 16:42:44 +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:
@@ -73,7 +73,7 @@ NSString *const kIntegrationManagerAddIntegrationScreen = @"add_integ";
|
||||
|
||||
// Make sure we have a scalar token
|
||||
MXWeakify(self);
|
||||
operation = [[WidgetManager sharedManager] getScalarTokenForMXSession:mxSession success:^(NSString *theScalarToken) {
|
||||
operation = [[WidgetManager sharedManager] getScalarTokenForMXSession:mxSession validate:YES success:^(NSString *theScalarToken) {
|
||||
MXStrongifyAndReturnIfNil(self);
|
||||
|
||||
self->operation = nil;
|
||||
|
||||
Reference in New Issue
Block a user