From 18acdf20a61e2d865facc6b1798d9a1e75a06440 Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Mon, 4 Aug 2014 13:56:22 +0200 Subject: [PATCH] oc: Make sure we always use NSString keys in 'messages' dictionary Different types for keys in Dictionaries leads to not finding expected entry - we should make sure that everythime we set/get entry from a dictionary, key object type is same --- OpenChange/MAPIStoreMailFolder.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenChange/MAPIStoreMailFolder.m b/OpenChange/MAPIStoreMailFolder.m index f0912d8f0..6a99fda18 100644 --- a/OpenChange/MAPIStoreMailFolder.m +++ b/OpenChange/MAPIStoreMailFolder.m @@ -639,7 +639,7 @@ _compareFetchResultsByMODSEQ (id entry1, id entry2, void *data) changeNumber = nil; for (count = 0; count < max; count++) { - uid = [fetchResults objectAtIndex: count]; + uid = [[fetchResults objectAtIndex: count] stringValue]; if ([messages objectForKey: uid]) { newChangeNum = [[changeNumbers objectAtIndex: count]