Fix unarchive action (#6920)

This commit is contained in:
Elias Nahum 2023-01-01 22:53:21 +02:00 committed by GitHub
parent dd60257364
commit 312c019841
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);