2
0
kaori 4 жил өмнө
parent
commit
186e428f6a

+ 5 - 0
packages/app/src/server/service/in-app-notification.ts

@@ -22,7 +22,12 @@ class InAppNotificationService {
   updateCommentEvent(): void {
     this.commentEvent.on('update', (user) => {
       this.commentEvent.onUpdate();
+
+      if (this.socketIoService.isInitialized) {
+        this.socketIoService.getDefaultSocket().emit('comment updated', { user });
+      }
     });
+
   }
 
   removeActivity = async function(activity) {