mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-25 19:10:49 +02:00
Room details, Bug Fix: check whether the view controller has not been released while back pagination was running
This commit is contained in:
@@ -448,6 +448,10 @@ NSString *const kCmdResetUserPowerLevel = @"/deop";
|
||||
backPaginationAddedItemsNb = 0;
|
||||
|
||||
[mxRoom paginateBackMessages:20 complete:^{
|
||||
// Sanity check: check whether the view controller has not been released while back pagination was running
|
||||
if (self.roomId == nil) {
|
||||
return;
|
||||
}
|
||||
if (backPaginationAddedItemsNb) {
|
||||
// Prepare insertion of new rows at the top of the table (compute cumulative height of added cells)
|
||||
NSMutableArray *indexPaths = [NSMutableArray arrayWithCapacity:backPaginationAddedItemsNb];
|
||||
|
||||
Reference in New Issue
Block a user