diff --git a/MixItUp.Base/Model/User/Platform/YouTubeUserPlatformV2Model.cs b/MixItUp.Base/Model/User/Platform/YouTubeUserPlatformV2Model.cs index f01223f88..6b82711ac 100644 --- a/MixItUp.Base/Model/User/Platform/YouTubeUserPlatformV2Model.cs +++ b/MixItUp.Base/Model/User/Platform/YouTubeUserPlatformV2Model.cs @@ -95,21 +95,24 @@ public void SetMessageProperties(LiveChatMessage message) public async Task RefreshMembershipDetails() { - Member membership = await ServiceManager.Get().UserConnection.CheckIfMember(this.ID); - if (membership != null) + if (ServiceManager.Get().HasMembershipCapabilities) { - this.Roles.Add(UserRoleEnum.YouTubeMember); - this.Roles.Add(UserRoleEnum.Subscriber); - this.SubscribeDate = DateTime.Parse(membership.Snippet.MembershipsDetails.MembershipsDuration.MemberSince); - this.MemberLevels.Clear(); - this.MemberLevels.AddRange(membership.Snippet.MembershipsDetails.AccessibleLevels); - } - else - { - this.Roles.Remove(UserRoleEnum.YouTubeMember); - this.Roles.Remove(UserRoleEnum.Subscriber); - this.SubscribeDate = null; - this.MemberLevels.Clear(); + Member membership = await ServiceManager.Get().UserConnection.CheckIfMember(this.ID); + if (membership != null) + { + this.Roles.Add(UserRoleEnum.YouTubeMember); + this.Roles.Add(UserRoleEnum.Subscriber); + this.SubscribeDate = DateTime.Parse(membership.Snippet.MembershipsDetails.MembershipsDuration.MemberSince); + this.MemberLevels.Clear(); + this.MemberLevels.AddRange(membership.Snippet.MembershipsDetails.AccessibleLevels); + } + else + { + this.Roles.Remove(UserRoleEnum.YouTubeMember); + this.Roles.Remove(UserRoleEnum.Subscriber); + this.SubscribeDate = null; + this.MemberLevels.Clear(); + } } } diff --git a/MixItUp.Base/Services/YouTube/YouTubePlatformService.cs b/MixItUp.Base/Services/YouTube/YouTubePlatformService.cs index 9bb8a9046..25698bd83 100644 --- a/MixItUp.Base/Services/YouTube/YouTubePlatformService.cs +++ b/MixItUp.Base/Services/YouTube/YouTubePlatformService.cs @@ -105,8 +105,6 @@ public YouTubePlatformService(YouTubeConnection connection) public async Task