Skip to content

Commit

Permalink
fix(clienthelper): reflect name changes in live events (#828)
Browse files Browse the repository at this point in the history
  • Loading branch information
iProdigy committed Aug 1, 2023
1 parent 6a4b97b commit 1adf4ae
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -201,9 +201,10 @@ public TwitchClientHelper(TwitchHelix twitchHelix, EventManager eventManager, Sc
return;

ChannelCache currentChannelCache = channelInformation.computeIfAbsent(userId, s -> new ChannelCache());
// Disabled name updates while Helix returns display name https://github.com/twitchdev/issues/issues/3
if (stream != null && currentChannelCache.getUserName() == null)
currentChannelCache.setUserName(stream.getUserName());
if (stream != null) {
// gracefully support name changes
currentChannelCache.setUserName(stream.getUserLogin());
}
final EventChannel channel = new EventChannel(userId, currentChannelCache.getUserName());

boolean dispatchGoLiveEvent = false;
Expand Down

0 comments on commit 1adf4ae

Please sign in to comment.