Commit 3c5677a4 authored by Tijmen de Mes's avatar Tijmen de Mes

Prevent adding message stream if it is already in the session

parent f1732543
......@@ -1298,6 +1298,7 @@ class MessageManager(object, metaclass=Singleton):
except StopIteration:
session_manager.create_session(contact, contact_uri, [StreamDescription('messages')], account=account, connect=False)
else:
if blink_session.fake_streams.get('messages') is None:
blink_session.add_stream(StreamDescription('messages'))
if blink_session.account.sms.enable_pgp:
blink_session.fake_streams.get('messages').enable_pgp()
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