From 2c7ec2a837bc1349730822762b63f250ad6299f6 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Thu, 1 Aug 2024 12:38:16 -0400 Subject: [PATCH] Fix name of delayed event update capability/action --- src/interfaces/Capabilities.ts | 2 +- src/interfaces/WidgetApiAction.ts | 2 +- test/ClientWidgetApi-test.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/interfaces/Capabilities.ts b/src/interfaces/Capabilities.ts index 229a576..f0d3002 100644 --- a/src/interfaces/Capabilities.ts +++ b/src/interfaces/Capabilities.ts @@ -45,7 +45,7 @@ export enum MatrixCapabilities { /** * @deprecated It is not recommended to rely on this existing - it can be removed without notice. */ - MSC4157UpdateDelayedEvent = "org.matrix.msc4157.update.delayed_event", + MSC4157UpdateDelayedEvent = "org.matrix.msc4157.update_delayed_event", } export type Capability = MatrixCapabilities | string; diff --git a/src/interfaces/WidgetApiAction.ts b/src/interfaces/WidgetApiAction.ts index 27345ce..6af56eb 100644 --- a/src/interfaces/WidgetApiAction.ts +++ b/src/interfaces/WidgetApiAction.ts @@ -83,7 +83,7 @@ export enum WidgetApiFromWidgetAction { /** * @deprecated It is not recommended to rely on this existing - it can be removed without notice. */ - MSC4157UpdateDelayedEvent = "org.matrix.msc4157.update.delayed_event", + MSC4157UpdateDelayedEvent = "org.matrix.msc4157.update_delayed_event", } export type WidgetApiAction = WidgetApiToWidgetAction | WidgetApiFromWidgetAction | string; diff --git a/test/ClientWidgetApi-test.ts b/test/ClientWidgetApi-test.ts index 57a8465..5882c36 100644 --- a/test/ClientWidgetApi-test.ts +++ b/test/ClientWidgetApi-test.ts @@ -383,7 +383,7 @@ describe('ClientWidgetApi', () => { }, }; - await loadIframe(['org.matrix.msc4157.update.delayed_event']); + await loadIframe(['org.matrix.msc4157.update_delayed_event']); emitEvent(new CustomEvent('', { detail: event })); @@ -415,7 +415,7 @@ describe('ClientWidgetApi', () => { }, }; - await loadIframe(['org.matrix.msc4157.update.delayed_event']); + await loadIframe(['org.matrix.msc4157.update_delayed_event']); emitEvent(new CustomEvent('', { detail: event }));