We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a74068b commit a77b508Copy full SHA for a77b508
src/headless/plugins/bookmarks/model.js
@@ -4,12 +4,12 @@ import converse from '../../shared/api/public.js';
4
const { Strophe } = converse.env;
5
6
class Bookmark extends Model {
7
- get idAttribute () {
+ get idAttribute() {
8
return 'jid';
9
}
10
11
- getDisplayName () {
12
- return Strophe.xmlunescape(this.get('name')) || this.get('jid');
+ getDisplayName() {
+ return this.get('name') && Strophe.xmlunescape(this.get('name')) || this.get('jid');
13
14
15
0 commit comments