More progress, still a long way to go
This commit is contained in:
@@ -1323,12 +1323,6 @@ impl ServerApiProvider {
|
||||
ctx.dispatch_global_action("app:log_out", ());
|
||||
}
|
||||
ServerApiEvent::NeedsReauth => {
|
||||
// AuthManager depends on a reference to ServerApi, so ServerApi can't easily
|
||||
// hold a ref to AuthManager. To get around this, we emit an event on ServerApi
|
||||
// and handle calling the AuthManager here instead.
|
||||
AuthManager::handle(ctx).update(ctx, |auth_manager, ctx| {
|
||||
auth_manager.set_needs_reauth(true, ctx);
|
||||
});
|
||||
}
|
||||
// Re-emit the event for subscribers.
|
||||
// TODO: we probably want a different type for the event emitted to subscribers
|
||||
|
||||
Reference in New Issue
Block a user