Skip to content

Commit f86425e

Browse files
committed
Fix array result type
1 parent baf6412 commit f86425e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MatrixSDK/Crypto/Data/Store/MXRealmCryptoStore/MXRealmCryptoStore.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ - (void)removeOutboundGroupSessionWithRoomId:(NSString*)roomId
11321132
{
11331133
RLMRealm *realm = self.realm;
11341134
[realm transactionWithName:@"[MXRealmCryptoStore] removeOutboundGroupSessionWithRoomId" block:^{
1135-
RLMResults<MXRealmOlmOutboundGroupSession *> *realmSessions = [MXRealmOlmOutboundGroupSession objectInRealm:realm forPrimaryKey:roomId];
1135+
RLMResults<MXRealmOlmOutboundGroupSession *> *realmSessions = [MXRealmOlmOutboundGroupSession objectsInRealm:realm where:@"roomId = %@", roomId];
11361136

11371137
[realm deleteObjects:realmSessions];
11381138
MXLogDebug(@"[MXRealmCryptoStore] removeOutboundGroupSessionWithRoomId%@: removed %lu entries", roomId, realmSessions.count);

0 commit comments

Comments
 (0)