From 312c019841bfd56e9da9802201181ba6609f6e0a Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Sun, 1 Jan 2023 22:53:21 +0200 Subject: [PATCH] Fix unarchive action (#6920) --- app/actions/remote/channel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/actions/remote/channel.ts b/app/actions/remote/channel.ts index 6c312e921..893b33e6e 100644 --- a/app/actions/remote/channel.ts +++ b/app/actions/remote/channel.ts @@ -1264,7 +1264,7 @@ export const unarchiveChannel = async (serverUrl: string, channelId: string) => try { EphemeralStore.addArchivingChannel(channelId); await client.unarchiveChannel(channelId); - await setChannelDeleteAt(serverUrl, channelId, Date.now()); + await setChannelDeleteAt(serverUrl, channelId, 0); return {error: undefined}; } catch (error) { forceLogoutIfNecessary(serverUrl, error as ClientErrorProps);