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
1029aae2
Commit
1029aae2
authored
Mar 27, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Write out map when calling create
parent
c8f72b35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
src/converse-core.js
src/converse-core.js
+10
-10
No files found.
src/converse-core.js
View file @
1029aae2
...
...
@@ -899,7 +899,6 @@
* (String) message - An optional message to explain the
* reason for the subscription request.
*/
this
.
save
(
'
ask
'
,
"
subscribe
"
);
// ask === 'subscribe' Means we have ask to subscribe to them.
const
pres
=
$pres
({
to
:
this
.
get
(
'
jid
'
),
type
:
"
subscribe
"
});
if
(
message
&&
message
!==
""
)
{
pres
.
c
(
"
status
"
).
t
(
message
).
up
();
...
...
@@ -909,6 +908,7 @@
pres
.
c
(
'
nick
'
,
{
'
xmlns
'
:
Strophe
.
NS
.
NICK
}).
t
(
nick
).
up
();
}
_converse
.
connection
.
send
(
pres
);
this
.
save
(
'
ask
'
,
"
subscribe
"
);
// ask === 'subscribe' Means we have asked to subscribe to them.
return
this
;
},
...
...
@@ -1311,11 +1311,11 @@
return
;
// We're lazy when adding contacts.
}
this
.
create
({
ask
,
fullname
:
item
.
getAttribute
(
"
name
"
)
||
jid
,
groups
,
jid
,
subscription
'
ask
'
:
ask
,
'
fullname
'
:
item
.
getAttribute
(
"
name
"
)
||
jid
,
'
groups
'
:
groups
,
'
jid
'
:
jid
,
'
subscription
'
:
subscription
},
{
sort
:
false
});
}
else
{
if
(
subscription
===
"
remove
"
)
{
...
...
@@ -1326,10 +1326,10 @@
// here, we know they aren't requesting anymore.
// see docs/DEVELOPER.rst
contact
.
save
({
subscription
,
ask
,
requesting
:
null
,
groups
'
subscription
'
:
subscription
,
'
ask
'
:
ask
,
'
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