Bugfix: Fixes crash on multiple update.

pull/1/head
Frederic Jacobs 11 years ago
parent 80a8c39213
commit e269bd62ee

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

Loading…
Cancel
Save