mirror of
https://github.com/strukturag/nextcloud-spreed-signaling.git
synced 2023-10-21 07:33:40 -05:00
Include room session id in "joined" events.
This helps with matching signaling sessions with sessions in Talk.
This commit is contained in:
@@ -439,6 +439,9 @@ func (r *Room) PublishSessionJoined(session Session, sessionData *RoomSessionDat
|
||||
},
|
||||
},
|
||||
}
|
||||
if session, ok := session.(*ClientSession); ok {
|
||||
message.Event.Join[0].RoomSessionId = session.RoomSessionId()
|
||||
}
|
||||
if err := r.publish(message); err != nil {
|
||||
log.Printf("Could not publish session joined message in room %s: %s", r.Id(), err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user