From a6d97849a541873076d1f041a974c204e1cc2224 Mon Sep 17 00:00:00 2001 From: Mary Date: Tue, 12 Dec 2023 16:32:02 +0700 Subject: [PATCH] fix: remove remaining desktop check for temp mute --- app/com/components/dialogs/MuteConfirmDialog.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/com/components/dialogs/MuteConfirmDialog.tsx b/app/com/components/dialogs/MuteConfirmDialog.tsx index 87ffcf92..a1685b7a 100644 --- a/app/com/components/dialogs/MuteConfirmDialog.tsx +++ b/app/com/components/dialogs/MuteConfirmDialog.tsx @@ -87,12 +87,10 @@ const renderMutedByListDialog = (profile: SignalizedProfile, list: ListView) => ); }; -const isDesktop = import.meta.env.VITE_MODE === 'desktop'; - const renderMuteConfirmDialog = (profile: SignalizedProfile, filters: FilterPreferences) => { const queryClient = useQueryClient(); - const isTempMuted = !isDesktop && isProfileTempMuted(filters, profile.did); + const isTempMuted = isProfileTempMuted(filters, profile.did); const isMuted = profile.viewer.muted.value || isTempMuted; const [duration, setDuration] = createSignal('-1');