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
f6e299cc
Commit
f6e299cc
authored
Mar 27, 2013
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix. getVCard called errback by mistake.
parent
8863eb8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
converse.js
converse.js
+5
-5
No files found.
converse.js
View file @
f6e299cc
...
@@ -254,6 +254,7 @@
...
@@ -254,6 +254,7 @@
fullname
:
fullname
,
fullname
:
fullname
,
sender
:
'
them
'
,
sender
:
'
them
'
,
delayed
:
delayed
,
delayed
:
delayed
,
time
:
xmppchat
.
toISOString
(
new
Date
()),
composing
:
composing
.
length
composing
:
composing
.
length
});
});
}
}
...
@@ -1243,7 +1244,7 @@
...
@@ -1243,7 +1244,7 @@
img_type
=
$vcard
.
find
(
'
TYPE
'
).
text
(),
img_type
=
$vcard
.
find
(
'
TYPE
'
).
text
(),
url
=
$vcard
.
find
(
'
URL
'
).
text
();
url
=
$vcard
.
find
(
'
URL
'
).
text
();
callback
(
jid
,
fullname
,
img
,
img_type
,
url
);
callback
(
jid
,
fullname
,
img
,
img_type
,
url
);
},
this
),
jid
,
errback
()
);
},
this
),
jid
,
errback
);
}
}
}
}
...
@@ -1418,10 +1419,9 @@
...
@@ -1418,10 +1419,9 @@
is_last
:
is_last
is_last
:
is_last
});
});
},
this
),
},
this
),
$
.
proxy
(
function
()
{
$
.
proxy
(
function
(
stanza
)
{
// TODO: Better handling here
console
.
log
(
"
rosterHandler: Error occured while fetching vcard
"
);
// Error occured while fetching vcard
console
.
log
(
stanza
);
console
.
log
(
"
An error occured while fetching vcard
"
);
this
.
addRosterItem
({
this
.
addRosterItem
({
jid
:
item
.
jid
,
jid
:
item
.
jid
,
subscription
:
item
.
subscription
,
subscription
:
item
.
subscription
,
...
...
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