Преглед изворни кода

fixing subscrition index hardcode

tags/0.0.1^2
J пре 3 година
родитељ
комит
f96f317afa
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      frontend/src/services/chat.service.js

+ 1
- 1
frontend/src/services/chat.service.js Прегледај датотеку

73
         this.subscriptions = [MAIN_CHANNEL, 'Channel-LosAngeles']
73
         this.subscriptions = [MAIN_CHANNEL, 'Channel-LosAngeles']
74
         this.listeners = {
74
         this.listeners = {
75
             status: async e => {
75
             status: async e => {
76
-                await this.publish(this.subscriptions[2], testMessage)
76
+                await this.publish(this.subscriptions[0], testMessage)
77
                 if (e.category !== 'PNConnectedCategory') return
77
                 if (e.category !== 'PNConnectedCategory') return
78
             },
78
             },
79
             message: this._onMessage,
79
             message: this._onMessage,

Loading…
Откажи
Сачувај