Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • RoomUpgradeHandlerOpts

Index

Properties

consumeEvent

consumeEvent: boolean

Should upgrade and invite events be processed after being handled by the RoomUpgradeHandler. Defaults to false.

Optional migrateEntry

migrateEntry: undefined | ((entry: RoomBridgeStoreEntry, newRoomId: string) => Promise<RoomBridgeStoreEntry | null>)

Invoked when iterating around a rooms entries. Should be used to update entries with a new room id.

param

The existing entry.

param

The new roomId.

returns

Return the entry to upsert it, or null to ignore it.

migrateGhosts

migrateGhosts: boolean

Should ghost users be migrated to the new room. This will leave any users matching the user regex list in the registration file from the old room, and join them to the new room. Defaults to true

migrateStoreEntries

migrateStoreEntries: boolean

Migrate room store entries automatically. Defaults to true

Optional onRoomMigrated

onRoomMigrated: undefined | ((oldRoomId: string, newRoomId: string) => Promise<void> | void)

Invoked after a room has been upgraded and it's entries updated.

param

The old roomId.

param

The new roomId.

Generated using TypeDoc