From b0c8da2ce9336fd83aaddeca1fa2e24ecdc70c89 Mon Sep 17 00:00:00 2001 From: Max Cao Date: Wed, 26 Oct 2022 19:19:19 -0400 Subject: [PATCH] add ArchivedRecordingCreated notification hook to refresh allArchives --- src/app/Archives/AllArchivedRecordingsTable.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/app/Archives/AllArchivedRecordingsTable.tsx b/src/app/Archives/AllArchivedRecordingsTable.tsx index 25c367db94..c567a39ccc 100644 --- a/src/app/Archives/AllArchivedRecordingsTable.tsx +++ b/src/app/Archives/AllArchivedRecordingsTable.tsx @@ -157,6 +157,14 @@ export const AllArchivedRecordingsTable: React.FunctionComponent { + addSubscription( + context.notificationChannel.messages(NotificationCategory.ArchivedRecordingCreated).subscribe((v) => { + refreshDirectoriesAndCounts(); + }) + ); + }, [addSubscription, context.notificationChannel, refreshDirectoriesAndCounts]); + React.useEffect(() => { addSubscription( context.notificationChannel.messages(NotificationCategory.ArchivedRecordingDeleted).subscribe((v) => {