Skip to content

Commit 56230c1

Browse files
wesbillmanBrain
andauthored
fix(desktop): refresh channel state after unarchive (#923)
Signed-off-by: Wes <[email protected]> Co-authored-by: Brain <21994759fc7a6fa6b965551d35cfd7897d262f2495467f2d78694ddcfa6a5c7e@sprout-oss.stage.blox.sqprod.co>
1 parent 7dd5b34 commit 56230c1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎desktop/src/features/channels/hooks.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,9 @@ export function useUnarchiveChannelMutation(channelId: string | null) {
319319

320320
setChannelArchivedState(queryClient, channelId, null);
321321
},
322+
onSettled: async () => {
323+
await invalidateChannelState(queryClient, channelId);
324+
},
322325
});
323326
}
324327

0 commit comments

Comments
 (0)