diff options
author | manuroe <manu@matrix.org> | 2016-11-07 17:27:09 +0100 |
---|---|---|
committer | manuroe <manu@matrix.org> | 2016-11-07 17:27:09 +0100 |
commit | 27a8c28da4e5c62d8863ee3d30642109d713c4d6 (patch) | |
tree | 58e5afddfa83e50f02672e7d7bd573bcdd1df177 /xcode/OLMKitTests | |
parent | 5d1b66c350ac017613982f904b896750766654de (diff) |
OLMKit: Update obj-c wrapper to 2.0.0
Diffstat (limited to 'xcode/OLMKitTests')
-rw-r--r-- | xcode/OLMKitTests/OLMKitGroupTests.m | 4 |
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 { |