mirror of
https://github.com/outline/outline.git
synced 2026-11-29 08:39:20 +03:00
fix: Add missing users.delete event handling (#8715)
This commit is contained in:
1 parent
307f4a1351
commit
912b9159f0
2 files changed
+10
No files matched your search
@@ -661,6 +661,10 @@ class WebsocketProvider extends React.Component<Props> {
|
||||
}
|
||||
});
|
||||
|
||||
this.socket.on("users.delete", (event: WebsocketEntityDeletedEvent) => {
|
||||
users.remove(event.modelId);
|
||||
});
|
||||
|
||||
this.socket.on(
|
||||
"userMemberships.update",
|
||||
async (event: PartialExcept<UserMembership, "id">) => {
|
||||
|
||||
@@ -828,6 +828,12 @@ export default class WebsocketsProcessor {
|
||||
.emit(event.name, { id: event.userId });
|
||||
}
|
||||
|
||||
case "users.delete": {
|
||||
return socketio
|
||||
.to(`team-${event.teamId}`)
|
||||
.emit(event.name, { modelId: event.userId });
|
||||
}
|
||||
|
||||
case "userMemberships.update": {
|
||||
return socketio
|
||||
.to(`user-${event.userId}`)
|
||||
|
||||
Reference in new issue
Block a user