You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-25 05:23:13 +03:00
Add call intent to RTC call notifications (#5010)
* Add media hint specifier * Refactor to use m.call.intent and to apply to membership * lint * Add a mechanism to get the consensus of a call. * Update tests * Expose option to update the call intent. * Better docs * Add tests * lint
This commit is contained in:
@@ -96,10 +96,20 @@ export interface ICallNotifyContent {
|
||||
}
|
||||
|
||||
export type RTCNotificationType = "ring" | "notification";
|
||||
|
||||
/**
|
||||
* Represents the intention of the call from the perspective of the sending user.
|
||||
* May be any string, although `"audio"` and `"video"` are commonly accepted values.
|
||||
*/
|
||||
export type RTCCallIntent = "audio" | "video" | string;
|
||||
export interface IRTCNotificationContent extends RelationEvent {
|
||||
"m.mentions": IMentions;
|
||||
"decline_reason"?: string;
|
||||
"notification_type": RTCNotificationType;
|
||||
/**
|
||||
* The initial intent of the calling user.
|
||||
*/
|
||||
"m.call.intent"?: RTCCallIntent;
|
||||
"sender_ts": number;
|
||||
"lifetime": number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user