Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
6a12a96e
Commit
6a12a96e
authored
Mar 28, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #1043 Parsing of bookmarks fail with missing nick element.
parent
ce849aaf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
spec/bookmarks.js
spec/bookmarks.js
+1
-1
src/converse-bookmarks.js
src/converse-bookmarks.js
+1
-1
No files found.
spec/bookmarks.js
View file @
6a12a96e
...
...
@@ -444,7 +444,7 @@
'
name
'
:
'
Another room
'
,
'
autojoin
'
:
'
false
'
,
'
jid
'
:
'
another@conference.shakespeare.lit
'
})
.
c
(
'
nick
'
).
t
(
'
JC
'
).
up
().
up
();
})
;
// Purposefully exclude the <nick> element to test #1043
_converse
.
connection
.
_dataRecv
(
test_utils
.
createRequest
(
stanza
));
expect
(
_converse
.
bookmarks
.
models
.
length
).
toBe
(
2
);
expect
(
_converse
.
bookmarks
.
findWhere
({
'
jid
'
:
'
theplay@conference.shakespeare.lit
'
}).
get
(
'
autojoin
'
)).
toBe
(
true
);
...
...
src/converse-bookmarks.js
View file @
6a12a96e
...
...
@@ -382,7 +382,7 @@
'
jid
'
:
bookmark
.
getAttribute
(
'
jid
'
),
'
name
'
:
bookmark
.
getAttribute
(
'
name
'
),
'
autojoin
'
:
bookmark
.
getAttribute
(
'
autojoin
'
)
===
'
true
'
,
'
nick
'
:
bookmark
.
querySelector
(
'
nick
'
).
textContent
'
nick
'
:
_
.
get
(
bookmark
.
querySelector
(
'
nick
'
),
'
textContent
'
)
});
});
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment