Skip to content

Commit

Permalink
- Fixing bug with Label Overlay Widget not properly using last state …
Browse files Browse the repository at this point in the history
…for Latest Follower and Latest Subscriber labels
  • Loading branch information
Matthew Olivo committed Oct 8, 2024
1 parent 49286ae commit 4617d34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions MixItUp.Base/Model/Overlay/OverlayLabelV3Model.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using System.IO;
using System.Linq;
using System.Runtime.Serialization;
using System.Text.Json.Serialization;
using System.Threading;
using System.Threading.Tasks;

Expand Down Expand Up @@ -153,7 +154,7 @@ public override async Task Initialize()
{
EventService.OnFollowOccurred += EventService_OnFollowOccurred;

if (this.IsDisplayEnabled(OverlayLabelDisplayV3TypeEnum.LatestFollower))
if (this.IsDisplayEnabled(OverlayLabelDisplayV3TypeEnum.LatestFollower) && this.Displays[OverlayLabelDisplayV3TypeEnum.LatestFollower].UserID == Guid.Empty)
{
UserV2ViewModel user = null;
if (ChannelSession.Settings.LastFollowerUserID != Guid.Empty)
Expand Down Expand Up @@ -214,7 +215,7 @@ public override async Task Initialize()
EventService.OnSubscriptionGiftedOccurred += EventService_OnSubscriptionGiftedOccurred;
EventService.OnMassSubscriptionsGiftedOccurred += EventService_OnMassSubscriptionsGiftedOccurred;

if (this.IsDisplayEnabled(OverlayLabelDisplayV3TypeEnum.LatestSubscriber))
if (this.IsDisplayEnabled(OverlayLabelDisplayV3TypeEnum.LatestSubscriber) && this.Displays[OverlayLabelDisplayV3TypeEnum.LatestSubscriber].UserID == Guid.Empty)
{
UserV2ViewModel user = null;
if (ChannelSession.Settings.LastSubscriberUserID != Guid.Empty)
Expand Down

0 comments on commit 4617d34

Please sign in to comment.