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
3af1ffc3
Commit
3af1ffc3
authored
Sep 18, 2020
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
omemo: announce bundle info after publishing new device
parent
32847e86
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
spec/omemo.js
spec/omemo.js
+1
-1
src/converse-omemo.js
src/converse-omemo.js
+5
-2
No files found.
spec/omemo.js
View file @
3af1ffc3
...
...
@@ -70,7 +70,7 @@ async function initializedOMEMO (_converse) {
}
f
describe
(
"
The OMEMO module
"
,
function
()
{
describe
(
"
The OMEMO module
"
,
function
()
{
it
(
"
adds methods for encrypting and decrypting messages via AES GCM
"
,
mock
.
initConverse
(
...
...
src/converse-omemo.js
View file @
3af1ffc3
...
...
@@ -1328,11 +1328,14 @@ converse.plugins.add('converse-omemo', {
}
devicelist
.
devices
.
trigger
(
'
remove
'
);
}
// Generate new bundle and publish
// Generate new device bundle and publish
// https://xmpp.org/extensions/attic/xep-0384-0.3.0.html#usecases-announcing
await
_converse
.
omemo_store
.
generateBundle
();
await
devicelist
.
publishDevices
();
const
device
=
devicelist
.
devices
.
get
(
_converse
.
omemo_store
.
get
(
'
device_id
'
));
return
generateFingerprint
(
device
);
const
fp
=
generateFingerprint
(
device
);
await
_converse
.
omemo_store
.
publishBundle
();
return
fp
;
}
}
}
...
...
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