Skip to content

Commit

Permalink
Fix: getDisplayName should always return a string.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbrand committed Dec 7, 2024
1 parent 832c250 commit 734f2b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/headless/plugins/muc/occupant.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') || this.get('');
}

/**
Expand Down

0 comments on commit 734f2b1

Please sign in to comment.