Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gajim-plugins
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Malte L
gajim-plugins
Commits
bfe2a0dc
Commit
bfe2a0dc
authored
Mar 20, 2019
by
Philipp Hörist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[omemo] Fix device_id migration
parent
7783864f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
omemo/backend/liteaxolotlstore.py
omemo/backend/liteaxolotlstore.py
+13
-0
No files found.
omemo/backend/liteaxolotlstore.py
View file @
bfe2a0dc
...
...
@@ -241,6 +241,19 @@ class LiteAxolotlStore(AxolotlStore):
END TRANSACTION;
"""
%
move
)
if
self
.
user_version
()
<
7
:
# Convert old device ids to integer
convert
=
"""
UPDATE secret SET device_id = device_id % 2147483646;
"""
self
.
_con
.
executescript
(
""" BEGIN TRANSACTION;
%s
PRAGMA user_version=7;
END TRANSACTION;
"""
%
convert
)
def
loadSignedPreKey
(
self
,
signedPreKeyId
):
query
=
'SELECT record FROM signed_prekeys WHERE prekey_id = ?'
result
=
self
.
_con
.
execute
(
query
,
(
signedPreKeyId
,
)).
fetchone
()
...
...
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