hotfix
This commit is contained in:
1 parent
0cb8b068a8
commit
64b0c76120
11 files changed
+453
-5
No files matched your search
@@ -125,6 +125,29 @@ impl ServerService {
|
||||
.await?;
|
||||
|
||||
txn.commit().await?;
|
||||
|
||||
let services = self
|
||||
.service_context
|
||||
.services
|
||||
.get()
|
||||
.expect("services initialized");
|
||||
if let Err(error) = self
|
||||
.service_context
|
||||
.repositories
|
||||
.computed_permission
|
||||
.full_sync_user(user_id, server_id)
|
||||
.await
|
||||
{
|
||||
tracing::error!(%user_id, %server_id, ?error, "Unable to sync permissions on join");
|
||||
}
|
||||
if let Err(error) = services
|
||||
.realtime_registry
|
||||
.refresh_user(&self.service_context.repositories, user_id)
|
||||
.await
|
||||
{
|
||||
tracing::error!(%user_id, ?error, "Unable to refresh realtime registry on join");
|
||||
}
|
||||
|
||||
event_bus.emit(ServerUserCreatedEvent {
|
||||
server_user: membership,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user