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
9a7f56db
Commit
9a7f56db
authored
Aug 18, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix format of stanza that queries for devices.
parent
4ed43854
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
84 additions
and
76 deletions
+84
-76
spec/omemo.js
spec/omemo.js
+80
-70
src/converse-omemo.js
src/converse-omemo.js
+4
-6
No files found.
spec/omemo.js
View file @
9a7f56db
This diff is collapsed.
Click to expand it.
src/converse-omemo.js
View file @
9a7f56db
...
...
@@ -703,15 +703,13 @@
'
type
'
:
'
get
'
,
'
from
'
:
_converse
.
bare_jid
,
'
to
'
:
this
.
get
(
'
jid
'
)
}).
c
(
'
query
'
,
{
'
xmlns
'
:
Strophe
.
NS
.
DISCO_ITEMS
,
'
node
'
:
Strophe
.
NS
.
OMEMO_DEVICELIST
});
}).
c
(
'
pubsub
'
,
{
'
xmlns
'
:
Strophe
.
NS
.
PUBSUB
})
.
c
(
'
items
'
,
{
'
node
'
:
Strophe
.
NS
.
OMEMO_DEVICELIST
});
_converse
.
connection
.
sendIQ
(
stanza
,
(
iq
)
=>
{
_
.
forEach
(
iq
.
querySelectorAll
(
'
device
'
),
sizzle
(
`list[xmlns="
${
Strophe
.
NS
.
OMEMO
}
"] device`
,
iq
),
(
dev
)
=>
this
.
devices
.
create
({
'
id
'
:
dev
.
getAttribute
(
'
id
'
),
'
jid
'
:
this
.
get
(
'
jid
'
)})
);
resolve
();
...
...
@@ -891,7 +889,7 @@
.
catch
(
_
.
partial
(
_converse
.
log
,
_
,
Strophe
.
LogLevel
.
ERROR
));
}
_converse
.
api
.
listen
.
on
(
'
afterTearDown
'
,
()
=>
_converse
.
devices
.
reset
());
_converse
.
api
.
listen
.
on
(
'
afterTearDown
'
,
()
=>
_converse
.
device
list
s
.
reset
());
_converse
.
api
.
listen
.
on
(
'
connected
'
,
registerPEPPushHandler
);
_converse
.
api
.
listen
.
on
(
'
renderToolbar
'
,
(
view
)
=>
view
.
renderOMEMOToolbarButton
());
_converse
.
api
.
listen
.
on
(
'
statusInitialized
'
,
initOMEMO
);
...
...
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