aboutsummaryrefslogtreecommitdiff
path: root/python/olm/__main__.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2016-09-22 16:24:03 +0100
committerRichard van der Hoff <richard@matrix.org>2016-09-22 16:24:03 +0100
commitb411f07df97da587c697d893ce661b6b1cf02a68 (patch)
tree2ee4892175d87e035271239c0a6b677b7c1c0a51 /python/olm/__main__.py
parentcfcee54a817b67fbdb4439e87f6237f8bf3487cc (diff)
InboundGroupSession.init no longer requires a separate message_index
Diffstat (limited to 'python/olm/__main__.py')
-rwxr-xr-xpython/olm/__main__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/olm/__main__.py b/python/olm/__main__.py
index d0fbe17..cf9158d 100755
--- a/python/olm/__main__.py
+++ b/python/olm/__main__.py
@@ -314,13 +314,13 @@ def do_inbound_group(args):
))
sys.exit(1)
credentials = json.load(args.credentials_file)
- for k in ('message_index', 'session_key'):
+ for k in ('session_key', ):
if not k in credentials:
sys.stderr.write("Credentials file is missing %s\n" % k)
sys.exit(1);
session = InboundGroupSession()
- session.init(credentials['message_index'], credentials['session_key'])
+ session.init(credentials['session_key'])
with open(args.session_file, "wb") as f:
f.write(session.pickle(args.key))