This repository was archived by the owner on Mar 9, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ export class SmallWidget extends EventEmitter {
128128 ) ;
129129 this . iframe = iframe ;
130130 this . messaging = new ClientWidgetApi ( this . mockWidget , iframe , driver ) ;
131+ this . messaging . setViewedRoomId ( this . roomId ?? null ) ;
131132
132133 // Emit events during the widget lifecycle
133134 this . messaging . on ( 'preparing' , ( ) => this . emit ( 'preparing' ) ) ;
@@ -317,7 +318,7 @@ export class SmallWidget extends EventEmitter {
317318 this . eventsToFeed . add ( ev ) ;
318319 } else {
319320 const raw = ev . getEffectiveEvent ( ) ;
320- this . messaging . feedEvent ( raw as IRoomEvent , this . roomId ?? '' ) . catch ( ( ) => null ) ;
321+ this . messaging . feedEvent ( raw as IRoomEvent ) . catch ( ( ) => null ) ;
321322 }
322323 }
323324 }
Original file line number Diff line number Diff line change @@ -308,6 +308,27 @@ export class SmallWidgetDriver extends WidgetDriver {
308308 await client . _unstable_updateDelayedEvent ( delayId , action ) ;
309309 }
310310
311+ /**
312+ * @experimental Part of MSC4140 & MSC4157
313+ */
314+ public async cancelScheduledDelayedEvent ( delayId : string ) : Promise < void > {
315+ await this . updateDelayedEvent ( delayId , UpdateDelayedEventAction . Cancel ) ;
316+ }
317+
318+ /**
319+ * @experimental Part of MSC4140 & MSC4157
320+ */
321+ public async restartScheduledDelayedEvent ( delayId : string ) : Promise < void > {
322+ await this . updateDelayedEvent ( delayId , UpdateDelayedEventAction . Restart ) ;
323+ }
324+
325+ /**
326+ * @experimental Part of MSC4140 & MSC4157
327+ */
328+ public async sendScheduledDelayedEvent ( delayId : string ) : Promise < void > {
329+ await this . updateDelayedEvent ( delayId , UpdateDelayedEventAction . Send ) ;
330+ }
331+
311332 /**
312333 * Implements {@link WidgetDriver#sendToDevice}
313334 */
You can’t perform that action at this time.
0 commit comments