kaori пре 4 година
родитељ
комит
186e428f6a
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      packages/app/src/server/service/in-app-notification.ts

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

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