Bugfix: Fixes crash on multiple update.

This commit is contained in:
Frederic Jacobs 2014-12-12 22:41:28 +01:00
parent 80a8c39213
commit e269bd62ee

View file

@ -687,6 +687,7 @@ typedef enum : NSUInteger {
return;
}
[self.collectionView performBatchUpdates:^{
for (YapDatabaseViewRowChange *rowChange in messageRowChanges)
{
switch (rowChange.type)
@ -719,8 +720,9 @@ typedef enum : NSUInteger {
}
}
}
} completion:^(BOOL finished) {
[self finishReceivingMessage];
}];
}
#pragma mark - UICollectionView DataSource