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
8dcb327e
Commit
8dcb327e
authored
Feb 09, 2019
by
André Berenguel
Committed by
JC Brand
Feb 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update contact nickname when receive a roster push
parent
e5c7e47b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
2 deletions
+5
-2
CHANGES.md
CHANGES.md
+1
-0
dist/converse.js
dist/converse.js
+1
-0
spec/protocol.js
spec/protocol.js
+2
-2
src/headless/converse-roster.js
src/headless/converse-roster.js
+1
-0
No files found.
CHANGES.md
View file @
8dcb327e
...
...
@@ -20,6 +20,7 @@
-
#1417 Margin between nickname and badge
-
#1421 Fix direct invite for membersonly room
-
#1422 Resurrect the
`muc_show_join_leave`
option
-
#1438 Update contact nickname when receiving a roster push
-
#1442 MUC read receipts causing empty lines
## 4.1.0 (2019-01-11)
...
...
dist/converse.js
View file @
8dcb327e
...
...
@@ -68673,6 +68673,7 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_0__["default"].plugins
contact.save({
'subscription': subscription,
'ask': ask,
'nickname': item.getAttribute("name"),
'requesting': null,
'groups': groups
});
spec/protocol.js
View file @
8dcb327e
...
...
@@ -270,7 +270,7 @@
.
c
(
'
item
'
,
{
'
jid
'
:
'
contact@example.org
'
,
'
subscription
'
:
'
to
'
,
'
name
'
:
'
contact@example.org
'
});
'
name
'
:
'
Nicky
'
});
_converse
.
connection
.
_dataRecv
(
test_utils
.
createRequest
(
stanza
));
// Check that the IQ set was acknowledged.
expect
(
sent_stanza
.
toLocaleString
()).
toBe
(
// Strophe adds the xmlns attr (although not in spec)
...
...
@@ -294,7 +294,7 @@
expect
(
$contacts
.
hasClass
(
'
to
'
)).
toBeTruthy
();
expect
(
$contacts
.
hasClass
(
'
both
'
)).
toBeFalsy
();
expect
(
$contacts
.
hasClass
(
'
current-xmpp-contact
'
)).
toBeTruthy
();
expect
(
$contacts
.
text
().
trim
()).
toBe
(
'
Contact
'
);
expect
(
$contacts
.
text
().
trim
()).
toBe
(
'
Nicky
'
);
expect
(
contact
.
presence
.
get
(
'
show
'
)).
toBe
(
'
offline
'
);
/* <presence
...
...
src/headless/converse-roster.js
View file @
8dcb327e
...
...
@@ -627,6 +627,7 @@ converse.plugins.add('converse-roster', {
contact
.
save
({
'
subscription
'
:
subscription
,
'
ask
'
:
ask
,
'
nickname
'
:
item
.
getAttribute
(
"
name
"
),
'
requesting
'
:
null
,
'
groups
'
:
groups
});
...
...
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