Skip to content

Commit

Permalink
Use user_id_str for kicked, leaving, and unpublished events, if enabl…
Browse files Browse the repository at this point in the history
…ed. (#2010)

Co-authored-by: Michael Shiel <mshiel@icehealthsystems.com>
  • Loading branch information
michaelshiel and Michael Shiel authored Mar 23, 2020
1 parent 6230189 commit 576afcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/janus_videoroom.c
Original file line number Diff line number Diff line change
Expand Up @@ -2489,7 +2489,7 @@ static void janus_videoroom_leave_or_unpublish(janus_videoroom_publisher *partic
json_object_set_new(event, "videoroom", json_string("event"));
json_object_set_new(event, "room", string_ids ? json_string(participant->room_id_str) : json_integer(participant->room_id));
json_object_set_new(event, is_leaving ? (kicked ? "kicked" : "leaving") : "unpublished",
json_integer(participant->user_id));
string_ids ? json_string(participant->user_id_str) : json_integer(participant->user_id));
janus_videoroom_notify_participants(participant, event);
/* Also notify event handlers */
if(notify_events && gateway->events_is_enabled()) {
Expand Down

0 comments on commit 576afcd

Please sign in to comment.