Skip to content

Commit

Permalink
fix IsAnonymous
Browse files Browse the repository at this point in the history
  • Loading branch information
AoshiW authored and AoshiW committed Oct 3, 2023
1 parent 0bebadf commit 6f23723
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions TwitchLib.Client.Models/CommunitySubscription.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public CommunitySubscription(
string userId,
UserType userType,
Dictionary<string, string>? undocumentedTags,
bool isAnonymous,
Goal? msgParamGoal,
string msgParamGiftTheme,
int msgParamMassGiftCount,
Expand All @@ -78,7 +77,7 @@ public CommunitySubscription(
userType,
undocumentedTags)
{
IsAnonymous = isAnonymous;
IsAnonymous = userId == AnonymousGifterUserId;
MsgParamGoal = msgParamGoal;
MsgParamGiftTheme = msgParamGiftTheme;
MsgParamMassGiftCount = msgParamMassGiftCount;
Expand Down
3 changes: 1 addition & 2 deletions TwitchLib.Client.Models/GiftedSubscription.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ public GiftedSubscription(
UserType userType,
Dictionary<string, string>? undocumentedTags,
Goal? msgParamGoal,
bool isAnonymous,
string msgParamMonths,
string msgParamRecipientDisplayName,
string msgParamRecipientId,
Expand All @@ -106,7 +105,7 @@ public GiftedSubscription(
undocumentedTags)
{
MsgParamGoal = msgParamGoal;
IsAnonymous = isAnonymous;
IsAnonymous = userId == AnonymousGifterUserId;
MsgParamMonths = msgParamMonths;
MsgParamRecipientDisplayName = msgParamRecipientDisplayName;
MsgParamRecipientId = msgParamRecipientId;
Expand Down

0 comments on commit 6f23723

Please sign in to comment.