Handles migration of rooms when a room upgrade is performed.

Hierarchy

  • RoomUpgradeHandler

Constructors

Methods

Constructors

Methods

  • Called when an invite event reaches the bridge. This function will check if the invite is from an upgraded room, and will join the room if so.

    Returns

    True if the invite is from an upgraded room and shouldn't be processed.

    Parameters

    • ev: { room_id: string }

      A Matrix m.room.member event of membership=invite directed to the bridge bot

      • room_id: string

    Returns Promise<boolean>

  • Called when the bridge sees a "m.room.tombstone" event.

    Parameters

    • ev: { content: { replacement_room: string }; room_id: string; sender: string }

      The m.room.tombstone event.

      • content: { replacement_room: string }
        • replacement_room: string
      • room_id: string
      • sender: string

    Returns Promise<boolean>

Generated using TypeDoc