Skip to content

Commit d62c658

Browse files
toger5BillCarsonFr
andauthored
Remove custom org.matrix.msc4075.rtc.notification.parent relation type (#4979)
* Remove custom `org.matrix.msc4075.rtc.notification.parent` relation type Signed-off-by: Timo K <toger5@hotmail.de> * fix test Signed-off-by: Timo K <toger5@hotmail.de> * Fix test post rebase --------- Signed-off-by: Timo K <toger5@hotmail.de> Co-authored-by: Valere <bill.carson@valrsoft.com>
1 parent bdc4a69 commit d62c658

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

spec/unit/matrixrtc/MatrixRTCSession.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ describe("MatrixRTCSession", () => {
333333
"notification_type": "ring",
334334
"m.relates_to": {
335335
event_id: ownMembershipId,
336-
rel_type: "org.matrix.msc4075.rtc.notification.parent",
336+
rel_type: "m.reference",
337337
},
338338
"lifetime": 30000,
339339
"sender_ts": expect.any(Number),
@@ -355,7 +355,7 @@ describe("MatrixRTCSession", () => {
355355
"m.mentions": { room: true, user_ids: [] },
356356
"m.relates_to": {
357357
event_id: expect.any(String),
358-
rel_type: "org.matrix.msc4075.rtc.notification.parent",
358+
rel_type: "m.reference",
359359
},
360360
"notification_type": "ring",
361361
"sender_ts": expect.any(Number),

src/@types/event.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ export enum RelationType {
165165
// moreover, our tests currently use the unstable prefix. Use THREAD_RELATION_TYPE.name.
166166
// Once we support *only* the stable prefix, THREAD_RELATION_TYPE can die and we can switch to this.
167167
Thread = "m.thread",
168-
unstable_RTCNotificationParent = "org.matrix.msc4075.rtc.notification.parent",
169168
}
170169

171170
export enum MsgType {

src/matrixrtc/MatrixRTCSession.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ export class MatrixRTCSession extends TypedEventEmitter<
690690
"notification_type": notificationType,
691691
"m.relates_to": {
692692
event_id: parentEventId,
693-
rel_type: RelationType.unstable_RTCNotificationParent,
693+
rel_type: RelationType.Reference,
694694
},
695695
"sender_ts": Date.now(),
696696
"lifetime": 30_000, // 30 seconds

0 commit comments

Comments
 (0)