Add special events to update "incall" flags of all sessions.

This commit is contained in:
Joachim Bauch
2022-03-23 09:15:22 +01:00
parent 008879aefa
commit 97f2a1d5f0
8 changed files with 313 additions and 9 deletions
+5
View File
@@ -338,6 +338,7 @@ const (
ServerFeatureUpdateSdp = "update-sdp"
ServerFeatureAudioVideoPermissions = "audio-video-permissions"
ServerFeatureTransientData = "transient-data"
ServerFeatureInCallAll = "incall-all"
// Features for internal clients only.
ServerFeatureInternalVirtualSessions = "virtual-sessions"
@@ -347,10 +348,12 @@ var (
DefaultFeatures = []string{
ServerFeatureAudioVideoPermissions,
ServerFeatureTransientData,
ServerFeatureInCallAll,
}
DefaultFeaturesInternal = []string{
ServerFeatureInternalVirtualSessions,
ServerFeatureTransientData,
ServerFeatureInCallAll,
}
)
@@ -591,6 +594,8 @@ type RoomEventServerMessage struct {
InCall *json.RawMessage `json:"incall,omitempty"`
Changed []map[string]interface{} `json:"changed,omitempty"`
Users []map[string]interface{} `json:"users,omitempty"`
All bool `json:"all,omitempty"`
}
const (