@@ -21,22 +21,35 @@ export enum ElementWidgetActions {
21
21
JoinCall = "io.element.join" ,
22
22
HangupCall = "im.vector.hangup" ,
23
23
CallParticipants = "io.element.participants" ,
24
- MuteAudio = "io.element.mute_audio" ,
25
- UnmuteAudio = "io.element.unmute_audio" ,
26
- MuteVideo = "io.element.mute_video" ,
27
- UnmuteVideo = "io.element.unmute_video" ,
28
24
StartLiveStream = "im.vector.start_live_stream" ,
29
25
30
26
// Actions for switching layouts
31
27
TileLayout = "io.element.tile_layout" ,
32
28
SpotlightLayout = "io.element.spotlight_layout" ,
33
29
34
30
OpenIntegrationManager = "integration_manager_open" ,
35
-
36
31
/**
37
32
* @deprecated Use MSC2931 instead
38
33
*/
39
34
ViewRoom = "io.element.view_room" ,
35
+
36
+ // This action type is used as a `fromWidget` and a `toWidget` action.
37
+ // fromWidget: updates the client about the current device mute state
38
+ // toWidget: the client requests a specific device mute configuration
39
+ // The reply will always be the resulting configuration
40
+ // It is possible to sent an empty configuration to retrieve the current values or
41
+ // just one of the fields to update that particular value
42
+ // An undefined field means that EC will keep the mute state as is.
43
+ // -> this will allow the client to only get the current state
44
+ //
45
+ // The data of the widget action request and the response are:
46
+ // {
47
+ // audio_enabled?: boolean,
48
+ // video_enabled?: boolean
49
+ // }
50
+ // NOTE: this is currently unused. Its only here to make EW aware
51
+ // of this action so it does not throw errors.
52
+ DeviceMute = "io.element.device_mute" ,
40
53
}
41
54
42
55
export interface IHangupCallApiRequest extends IWidgetApiRequest {
0 commit comments