aboutsummaryrefslogtreecommitdiff
path: root/xcode/OLMKitTests/OLMKitGroupTests.m
diff options
context:
space:
mode:
authormanuroe <manu@matrix.org>2016-11-07 17:27:09 +0100
committermanuroe <manu@matrix.org>2016-11-07 17:27:09 +0100
commit27a8c28da4e5c62d8863ee3d30642109d713c4d6 (patch)
tree58e5afddfa83e50f02672e7d7bd573bcdd1df177 /xcode/OLMKitTests/OLMKitGroupTests.m
parent5d1b66c350ac017613982f904b896750766654de (diff)
OLMKit: Update obj-c wrapper to 2.0.0
Diffstat (limited to 'xcode/OLMKitTests/OLMKitGroupTests.m')
-rw-r--r--xcode/OLMKitTests/OLMKitGroupTests.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/xcode/OLMKitTests/OLMKitGroupTests.m b/xcode/OLMKitTests/OLMKitGroupTests.m
index 9f5ad10..cdfb704 100644
--- a/xcode/OLMKitTests/OLMKitGroupTests.m
+++ b/xcode/OLMKitTests/OLMKitGroupTests.m
@@ -55,8 +55,10 @@
OLMInboundGroupSession *bobSession = [[OLMInboundGroupSession alloc] initInboundGroupSessionWithSessionKey:sessionKey];
XCTAssertEqualObjects(aliceSession.sessionIdentifier, bobSession.sessionIdentifier);
- NSString *plaintext = [bobSession decryptMessage:aliceToBobMsg];
+ NSUInteger messageIndex;
+ NSString *plaintext = [bobSession decryptMessage:aliceToBobMsg messageIndex:&messageIndex];
XCTAssertEqualObjects(message, plaintext);
+ XCTAssertEqual(messageIndex, 0);
}
- (void)testOutboundGroupSessionSerialization {