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
01c2c5d9
Commit
01c2c5d9
authored
Jul 14, 2014
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Save groups on RosterItem. updates #83
parent
6bded113
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
converse.js
converse.js
+16
-9
No files found.
converse.js
View file @
01c2c5d9
...
...
@@ -564,7 +564,7 @@
this
.
connection
.
xmlInput
=
function
(
body
)
{
console
.
log
(
body
);
};
this
.
connection
.
xmlOutput
=
function
(
body
)
{
console
.
log
(
body
);
};
Strophe
.
log
=
function
(
level
,
msg
)
{
console
.
log
(
level
+
'
'
+
msg
);
};
Strophe
.
error
=
function
(
msg
)
{
Strophe
.
error
=
function
(
msg
)
{
console
.
log
(
'
ERROR:
'
+
msg
);
};
}
...
...
@@ -3060,21 +3060,28 @@
return
;
}
this
.
create
({
jid
:
item
.
jid
,
subscription
:
item
.
subscription
,
ask
:
item
.
ask
,
fullname
:
item
.
name
||
item
.
jid
,
is_last
:
is_last
groups
:
item
.
groups
,
is_last
:
is_last
,
jid
:
item
.
jid
,
subscription
:
item
.
subscription
});
}
else
{
if
((
item
.
subscription
===
'
none
'
)
&&
(
item
.
ask
===
null
))
{
// This user is no longer in our roster
model
.
destroy
();
}
else
if
(
model
.
get
(
'
subscription
'
)
!==
item
.
subscription
||
model
.
get
(
'
ask
'
)
!==
item
.
ask
)
{
// only modify model attributes if they are different from the
// ones that were already set when the rosterItem was added
model
.
set
({
'
subscription
'
:
item
.
subscription
,
'
ask
'
:
item
.
ask
,
'
requesting
'
:
null
});
model
.
save
();
}
else
{
// We only find out about requesting contacts via the
// presence handler, so if we receive a contact
// here, we know they aren't requesting anymore.
// see docs/DEVELOPER.rst
model
.
save
({
subscription
:
item
.
subscription
,
ask
:
item
.
ask
,
requesting
:
null
,
groups
:
item
.
groups
});
}
}
},
this
);
...
...
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