itizawa 5 лет назад
Родитель
Сommit
a490cf16f9
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      src/server/crowi/index.js

+ 5 - 0
src/server/crowi/index.js

@@ -675,6 +675,11 @@ Crowi.prototype.setupBoltService = async function() {
   if (this.boltService == null) {
   if (this.boltService == null) {
     this.boltService = new BoltService(this);
     this.boltService = new BoltService(this);
   }
   }
+
+  // add as a message handler
+  if (this.s2sMessagingService != null) {
+    this.s2sMessagingService.addMessageHandler(this.boltService);
+  }
 };
 };
 
 
 module.exports = Crowi;
 module.exports = Crowi;