Browse Source

feat(identity): add region identity parsing

dev1
hmuresan 4 years ago
parent
commit
febd9087b9
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      modules/xmpp/xmpp.js

+ 4
- 0
modules/xmpp/xmpp.js View File

445
             if (identity.type === 'shard') {
445
             if (identity.type === 'shard') {
446
                 this.options.deploymentInfo.shard = this.connection.shard = identity.name;
446
                 this.options.deploymentInfo.shard = this.connection.shard = identity.name;
447
             }
447
             }
448
+
449
+            if (identity.type === 'region') {
450
+                this.options.deploymentInfo.region = this.connection.region = identity.name;
451
+            }
448
         });
452
         });
449
 
453
 
450
         if (this.avModerationComponentAddress
454
         if (this.avModerationComponentAddress

Loading…
Cancel
Save