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
01888b9b
Commit
01888b9b
authored
Aug 09, 2017
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vcard: Properly handle case where FN is empty in VCard
parent
eed936ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/converse-vcard.js
src/converse-vcard.js
+3
-4
No files found.
src/converse-vcard.js
View file @
01888b9b
...
@@ -82,15 +82,14 @@
...
@@ -82,15 +82,14 @@
const
vcard
=
iq
.
querySelector
(
'
vCard
'
),
const
vcard
=
iq
.
querySelector
(
'
vCard
'
),
img_type
=
_
.
get
(
vcard
.
querySelector
(
'
TYPE
'
),
'
textContent
'
),
img_type
=
_
.
get
(
vcard
.
querySelector
(
'
TYPE
'
),
'
textContent
'
),
img
=
_
.
get
(
vcard
.
querySelector
(
'
BINVAL
'
),
'
textContent
'
),
img
=
_
.
get
(
vcard
.
querySelector
(
'
BINVAL
'
),
'
textContent
'
),
url
=
_
.
get
(
vcard
.
querySelector
(
'
URL
'
),
'
textContent
'
);
url
=
_
.
get
(
vcard
.
querySelector
(
'
URL
'
),
'
textContent
'
),
fullname
=
_
.
get
(
vcard
.
querySelector
(
'
FN
'
),
'
textContent
'
);
let
fullname
=
_
.
get
(
vcard
.
querySelector
(
'
FN
'
),
'
textContent
'
);
if
(
jid
)
{
if
(
jid
)
{
const
contact
=
_converse
.
roster
.
get
(
jid
);
const
contact
=
_converse
.
roster
.
get
(
jid
);
if
(
contact
)
{
if
(
contact
)
{
fullname
=
_
.
isUndefined
(
fullname
)
?
_
.
get
(
contact
,
'
fullname
'
,
jid
)
:
fullname
;
contact
.
save
({
contact
.
save
({
'
fullname
'
:
fullname
,
'
fullname
'
:
fullname
||
_
.
get
(
contact
,
'
fullname
'
,
jid
)
,
'
image_type
'
:
img_type
,
'
image_type
'
:
img_type
,
'
image
'
:
img
,
'
image
'
:
img
,
'
url
'
:
url
,
'
url
'
:
url
,
...
...
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