Prechádzať zdrojové kódy

Fix: `getDisplayName` should always return a string.

JC Brand 7 mesiacov pred
rodič
commit
6e77f7b2d8
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/headless/plugins/muc/occupant.js

+ 1 - 1
src/headless/plugins/muc/occupant.js

@@ -101,7 +101,7 @@ class MUCOccupant extends ModelWithMessages(ColorAwareModel(Model)) {
      * @returns {string}
      */
     getDisplayName() {
-        return this.get('nick') || this.get('jid');
+        return this.get('nick') || this.get('jid') || '';
     }
 
     /**