Include room session id in "joined" events.

This helps with matching signaling sessions with sessions in Talk.
This commit is contained in:
Joachim Bauch
2021-12-17 16:02:22 +01:00
parent 468470d128
commit 76ad24ca62
4 changed files with 15 additions and 5 deletions
+3
View File
@@ -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)
}