Shun Miyazawa %!s(int64=4) %!d(string=hai) anos
pai
achega
c0e0bdf27b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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))