Explorar o código

Fix: `getDisplayName` should always return a string.

JC Brand hai 7 meses
pai
achega
6e77f7b2d8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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') || '';
     }
 
     /**