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
pull/69/head
Kamen Mazdrashki 2014-08-04 13:56:22 +02:00 committed by Julio García
parent 0a23f18fc9
commit 18acdf20a6
1 changed files with 1 additions and 1 deletions

View File

@ -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]