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
535fc7bc
Commit
535fc7bc
authored
Mar 27, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use strings for map keys
parent
9799ecce
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 @
535fc7bc
...
...
@@ -727,9 +727,9 @@
return
;
}
const
carbons_iq
=
new
Strophe
.
Builder
(
'
iq
'
,
{
from
:
this
.
connection
.
jid
,
id
:
'
enablecarbons
'
,
type
:
'
set
'
'
from
'
:
this
.
connection
.
jid
,
'
id
'
:
'
enablecarbons
'
,
'
type
'
:
'
set
'
})
.
c
(
'
enable
'
,
{
xmlns
:
Strophe
.
NS
.
CARBONS
});
this
.
connection
.
addHandler
((
iq
)
=>
{
...
...
@@ -951,7 +951,7 @@
* Parameters:
* (String) message - Optional message to send to the person being authorized
*/
const
pres
=
$pres
({
to
:
this
.
get
(
'
jid
'
),
type
:
"
subscribed
"
});
const
pres
=
$pres
({
'
to
'
:
this
.
get
(
'
jid
'
),
'
type
'
:
"
subscribed
"
});
if
(
message
&&
message
!==
""
)
{
pres
.
c
(
"
status
"
).
t
(
message
);
}
...
...
@@ -1227,7 +1227,7 @@
contact
.
authorize
().
subscribe
();
}
}
this
.
addContact
(
bare_jid
,
''
,
[],
{
'
subscription
'
:
'
from
'
}).
then
(
handler
,
handler
);
this
.
addContact
(
bare_jid
,
''
,
[],
{
'
subscription
'
:
'
from
'
}).
then
(
handler
,
handler
);
}
},
...
...
@@ -1342,11 +1342,11 @@
const
bare_jid
=
Strophe
.
getBareJidFromJid
(
presence
.
getAttribute
(
'
from
'
)),
nick_el
=
presence
.
querySelector
(
`nick[xmlns="
${
Strophe
.
NS
.
NICK
}
"]`
);
const
user_data
=
{
jid
:
bare_jid
,
subscription
:
'
none
'
,
ask
:
null
,
requesting
:
true
,
fullname
:
nick_el
&&
nick_el
.
textContent
||
bare_jid
,
'
jid
'
:
bare_jid
,
'
subscription
'
:
'
none
'
,
'
ask
'
:
null
,
'
requesting
'
:
true
,
'
fullname
'
:
nick_el
&&
nick_el
.
textContent
||
bare_jid
,
};
this
.
create
(
user_data
);
_converse
.
emit
(
'
contactRequest
'
,
user_data
);
...
...
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