From 41b50d34719176ea63979686bcdeb99b3c34b7e6 Mon Sep 17 00:00:00 2001 From: SivanA-Kaltura <88330203+SivanA-Kaltura@users.noreply.github.com> Date: Tue, 19 Dec 2023 14:33:07 +0200 Subject: [PATCH] remove active message when seeking --- src/call-to-action.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/call-to-action.tsx b/src/call-to-action.tsx index ad61889..37c99d0 100644 --- a/src/call-to-action.tsx +++ b/src/call-to-action.tsx @@ -76,7 +76,10 @@ class CallToAction extends BasePlugin { // @ts-ignore const currentTime = this.player.currentTime; - this.hideActiveMessage(); + if (this.activeMessage) { + this.callToActionManager.removeMessage(); + this.activeMessageEndTime = -1; + } for (const message of this.messages) { if (message.timing.redisplayMessage || !message.wasDismissed) {