Skip to content

Commit

Permalink
add ArchivedRecordingCreated notification hook to refresh allArchives
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcao13 committed Oct 26, 2022
1 parent 1155826 commit b0c8da2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/app/Archives/AllArchivedRecordingsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,14 @@ export const AllArchivedRecordingsTable: React.FunctionComponent<AllArchivedReco
);
}, [addSubscription, context.notificationChannel, refreshDirectoriesAndCounts]);

React.useEffect(() => {
addSubscription(
context.notificationChannel.messages(NotificationCategory.ArchivedRecordingCreated).subscribe((v) => {
refreshDirectoriesAndCounts();
})
);
}, [addSubscription, context.notificationChannel, refreshDirectoriesAndCounts]);

React.useEffect(() => {
addSubscription(
context.notificationChannel.messages(NotificationCategory.ArchivedRecordingDeleted).subscribe((v) => {
Expand Down

0 comments on commit b0c8da2

Please sign in to comment.