Skip to content

Commit 3d1bcb7

Browse files
authored
Allow msc4354_sticky_key to be optional on sticky events. (#5073)
1 parent a960e68 commit 3d1bcb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3443,7 +3443,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
34433443
delayOpts: SendDelayedEventRequestOpts,
34443444
threadId: string | null,
34453445
eventType: K,
3446-
content: TimelineEvents[K] & { msc4354_sticky_key: string },
3446+
content: TimelineEvents[K] & { msc4354_sticky_key?: string },
34473447
txnId?: string,
34483448
): Promise<SendDelayedEventResponse> {
34493449
if (!(await this.doesServerSupportUnstableFeature(UNSTABLE_MSC4140_DELAYED_EVENTS))) {
@@ -3516,7 +3516,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
35163516
stickDuration: number,
35173517
threadId: string | null,
35183518
eventType: K,
3519-
content: TimelineEvents[K] & { msc4354_sticky_key: string },
3519+
content: TimelineEvents[K] & { msc4354_sticky_key?: string },
35203520
txnId?: string,
35213521
): Promise<ISendEventResponse> {
35223522
if (!(await this.doesServerSupportUnstableFeature(UNSTABLE_MSC4354_STICKY_EVENTS))) {

0 commit comments

Comments
 (0)