Commit 850cf7d8 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[omemo] Fix set operation

Fixes #399
parent 6436c1ca
...@@ -437,7 +437,7 @@ class OMEMO(BaseModule): ...@@ -437,7 +437,7 @@ class OMEMO(BaseModule):
def set_devicelist(self, devicelist=None): def set_devicelist(self, devicelist=None):
devicelist_ = set([self.backend.own_device]) devicelist_ = set([self.backend.own_device])
if devicelist is not None: if devicelist is not None:
devicelist_.add(devicelist) devicelist_.update(devicelist)'Publishing own devicelist: %s', devicelist_)'Publishing own devicelist: %s', devicelist_)
self._nbxmpp('OMEMO').set_devicelist(devicelist_) self._nbxmpp('OMEMO').set_devicelist(devicelist_)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment