1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-16 09:42:23 +03:00

MatrixRTC: Add RTC decline event (#4978)

* Add decline event

Signed-off-by: Timo K <toger5@hotmail.de>

* add `client.sendRtcDecline`.

Signed-off-by: Timo K <toger5@hotmail.de>

* remove `decline.reason` field.

Signed-off-by: Timo K <toger5@hotmail.de>

---------

Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
Timo
2025-08-26 17:21:40 +02:00
committed by GitHub
parent c4c7f94514
commit 2f1d654f14
3 changed files with 15 additions and 0 deletions

View File

@@ -3589,6 +3589,12 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
return await this.setRoomReadMarkersHttpRequest(roomId, rmEventId, rrEventId, rpEventId);
}
public sendRtcDecline(roomId: string, notificationEventId: string): Promise<ISendEventResponse> {
return this.sendEvent(roomId, EventType.RTCDecline, {
"m.relates_to": { event_id: notificationEventId, rel_type: RelationType.Reference },
});
}
/**
* Get a preview of the given URL as of (roughly) the given point in time,
* described as an object with OpenGraph keys and associated values.