From a628ef41bd5b860b89a3e2e29df56a461e85fa00 Mon Sep 17 00:00:00 2001
From: Mark Haines <mjark@negativecurvature.net>
Date: Tue, 13 Sep 2016 17:41:55 +0100
Subject: Remove the messsage index from olm_init_inbound_group_session since
 it is read from the session_key

---
 python/olm/inbound_group_session.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'python/olm')

diff --git a/python/olm/inbound_group_session.py b/python/olm/inbound_group_session.py
index 6c01095..eb0422f 100644
--- a/python/olm/inbound_group_session.py
+++ b/python/olm/inbound_group_session.py
@@ -33,7 +33,7 @@ inbound_group_session_function(
 )
 
 inbound_group_session_function(
-    lib.olm_init_inbound_group_session, c_uint32, c_void_p, c_size_t
+    lib.olm_init_inbound_group_session, c_void_p, c_size_t
 )
 
 inbound_group_session_function(
@@ -66,10 +66,10 @@ class InboundGroupSession(object):
             self.ptr, key_buffer, len(key), pickle_buffer, len(pickle)
         )
 
-    def init(self, message_index, session_key):
+    def init(self, session_key):
         key_buffer = create_string_buffer(session_key)
         lib.olm_init_inbound_group_session(
-            self.ptr, message_index, key_buffer, len(session_key)
+            self.ptr, key_buffer, len(session_key)
         )
 
     def decrypt(self, message):
-- 
cgit v1.2.3-70-g09d2