Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
gajim
gajim-plugins
Commits
77b7762c
Commit
77b7762c
authored
Feb 23, 2019
by
Philipp Hörist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[omemo] Dont Fail on empty prekey table
parent
9362c592
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
omemo/backend/liteaxolotlstore.py
omemo/backend/liteaxolotlstore.py
+2
-3
No files found.
omemo/backend/liteaxolotlstore.py
View file @
77b7762c
...
...
@@ -412,9 +412,8 @@ class LiteAxolotlStore(AxolotlStore):
return
self
.
_con
.
execute
(
query
).
fetchone
().
count_prekey_id
def
generateNewPreKeys
(
self
,
count
):
start_id
=
self
.
getCurrentPreKeyId
()
+
1
pre_keys
=
KeyHelper
.
generatePreKeys
(
start_id
,
count
)
prekey_id
=
self
.
getCurrentPreKeyId
()
or
0
pre_keys
=
KeyHelper
.
generatePreKeys
(
prekey_id
+
1
,
count
)
for
pre_key
in
pre_keys
:
self
.
storePreKey
(
pre_key
.
getId
(),
pre_key
)
...
...
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