Skip to content

Commit

Permalink
[bug fix - in-app-broadcast] import used func `markBroadcastAsDismiss…
Browse files Browse the repository at this point in the history
…ed` + remove unused vars #70
  • Loading branch information
karngyan authored Oct 18, 2024
2 parents d8cdc11 + 9a4108c commit 739339e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/managers/message-broadcast-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ export async function markBroadcastAsDismissed(broadcastId) {
const messageBroadcastLocalStoreName = await getMessageBroadcastLocalStoreName();
if (!messageBroadcastLocalStoreName) return;

const broadcast = await fetchMessageBroadcast(messageBroadcastLocalStoreName, broadcastId);
if (!broadcast) return;

const broadcastShouldShowLocalStoreName = getBroadcastShouldShowLocalStoreName(messageBroadcastLocalStoreName, broadcastId);
setKeyToLocalStore(broadcastShouldShowLocalStoreName, false);
log(`Marked broadcast ${broadcastId} as dismissed and will not show again.`);
Expand Down
2 changes: 1 addition & 1 deletion src/managers/message-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
import { resolveMessageProperties } from "./gist-properties-manager";
import { positions, addPageElement } from "./page-component-manager";
import { checkMessageQueue } from "./queue-manager";
import { isMessageBroadcast, markBroadcastAsSeen } from './message-broadcast-manager';
import { isMessageBroadcast, markBroadcastAsSeen, markBroadcastAsDismissed } from './message-broadcast-manager';
import { markUserQueueMessageAsSeen } from './message-user-queue-manager';

export async function showMessage(message) {
Expand Down

0 comments on commit 739339e

Please sign in to comment.