Skip to content

Commit

Permalink
UI: Fix YT chat being shown when selecting private event
Browse files Browse the repository at this point in the history
  • Loading branch information
derrod committed Sep 5, 2021
1 parent d6f00cc commit e2b7597
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions UI/window-youtube-actions.cpp
Expand Up @@ -453,9 +453,10 @@ bool OBSYoutubeActions::ChooseAnEventAction(YoutubeApiWrappers *api,
json["items"]
.array_items()[0]["contentDetails"]["boundStreamId"]
.string_value();

std::string broadcastPrivacy =
json["status"]["privacyStatus"].string_value();
json["items"]
.array_items()[0]["status"]["privacyStatus"]
.string_value();

stream.id = boundStreamId.c_str();
if (!stream.id.isEmpty() && apiYouTube->FindStream(stream.id, json)) {
Expand Down

0 comments on commit e2b7597

Please sign in to comment.