Merge pull request #227 from strukturag/hide-displaynames

Add "permission" for sessions that may not receive display names.
This commit is contained in:
Joachim Bauch
2022-04-27 16:19:23 +02:00
committed by GitHub
6 changed files with 249 additions and 28 deletions
+21
View File
@@ -620,6 +620,18 @@ type RoomFlagsServerMessage struct {
Flags uint32 `json:"flags"`
}
type ChatComment map[string]interface{}
type RoomEventMessageDataChat struct {
Comment *ChatComment `json:"comment,omitempty"`
}
type RoomEventMessageData struct {
Type string `json:"type"`
Chat *RoomEventMessageDataChat `json:"chat,omitempty"`
}
type EventServerMessage struct {
Target string `json:"target"`
Type string `json:"type"`
@@ -646,6 +658,15 @@ type EventServerMessageSessionEntry struct {
RoomSessionId string `json:"roomsessionid,omitempty"`
}
func (e *EventServerMessageSessionEntry) Clone() *EventServerMessageSessionEntry {
return &EventServerMessageSessionEntry{
SessionId: e.SessionId,
UserId: e.UserId,
User: e.User,
RoomSessionId: e.RoomSessionId,
}
}
// MCU-related types
type AnswerOfferMessage struct {