Shun Miyazawa 4 лет назад
Родитель
Сommit
c0e0bdf27b
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      packages/app/src/server/service/in-app-notification.ts

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

@@ -35,6 +35,8 @@ export default class InAppNotificationService {
   emitSocketIo = async(userId, pageId) => {
     if (this.socketIoService.isInitialized) {
       const count = await this.getUnreadCountByUser(userId);
+
+      // emit to the room for each page
       await this.socketIoService.getDefaultSocket()
         .in(getRoomNameWithId(RoomPrefix.PAGE, pageId))
         .except(getRoomNameWithId(RoomPrefix.USER, userId))