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
S
slixmpp-omemo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poezio
slixmpp-omemo
Commits
be913995
Unverified
Commit
be913995
authored
Feb 27, 2019
by
Maxime Buquet
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent accessing list index when no device is available
Signed-off-by:
Maxime “pep” Buquet
<
pep@bouah.net
>
parent
b5f9eb7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
slixmpp_omemo/__init__.py
slixmpp_omemo/__init__.py
+3
-1
No files found.
slixmpp_omemo/__init__.py
View file @
be913995
...
...
@@ -302,7 +302,9 @@ class XEP_0384(BasePlugin):
self
.
_store_device_ids
(
bare_jid
,
items
)
items
=
list
(
items
)
device_ids
=
[
int
(
d
[
'id'
])
for
d
in
items
[
0
][
'devices'
]]
device_ids
=
[]
if
items
:
device_ids
=
[
int
(
d
[
'id'
])
for
d
in
items
[
0
][
'devices'
]]
if
bare_jid
==
self
.
xmpp
.
boundjid
.
bare
and
\
self
.
_device_id
not
in
device_ids
:
...
...
Maxime Buquet
@ppjet
mentioned in issue
#2 (closed)
·
Mar 04, 2019
mentioned in issue
#2 (closed)
mentioned in issue #2
Toggle commit list
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