Unbridge rooms when their channel is deleted

This commit is contained in:
Cadence Ember 2024-08-31 17:02:46 +12:00
commit a2e3f06e8e
4 changed files with 31 additions and 7 deletions

View file

@ -147,6 +147,9 @@ const utils = {
} else if (message.t === "CHANNEL_PINS_UPDATE") {
await eventDispatcher.onChannelPinsUpdate(client, message.d)
} else if (message.t === "CHANNEL_DELETE") {
await eventDispatcher.onChannelDelete(client, message.d)
} else if (message.t === "THREAD_CREATE") {
// @ts-ignore
await eventDispatcher.onThreadCreate(client, message.d)