Skip to content

Commit

Permalink
Fix bogus assertion (possibly some race condition)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmolitor-stud-tu committed Nov 8, 2024
1 parent 058b801 commit 7bc955b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Monal/Classes/chatViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -3564,7 +3564,8 @@ -(NSInteger)collectionView:(nonnull UICollectionView*) collectionView numberOfIt

-(void) notifyUploadQueueRemoval:(NSUInteger) index
{
MLAssert(index < self.uploadQueue.count, @"index is only allowed to be smaller than uploadQueue.count");
if(index >= self.uploadQueue.count)
return;
[self.uploadMenuView performBatchUpdates:^{
[self deleteQueueItemAtIndex:index];
} completion:^(BOOL finished) {
Expand Down

0 comments on commit 7bc955b

Please sign in to comment.