kaori 4 лет назад
Родитель
Сommit
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 {
     this.commentEvent.on('update', (user) => {
       this.commentEvent.onUpdate();
+
+      if (this.socketIoService.isInitialized) {
+        this.socketIoService.getDefaultSocket().emit('comment updated', { user });
+      }
     });
+
   }
 
   removeActivity = async function(activity) {