6111: Move the call on the listener

This commit is contained in:
MaximeE
2022-05-12 11:17:29 +02:00
parent 9b126b835d
commit 9f90e21e53
@@ -767,6 +767,7 @@ const CGFloat kTypingCellHeight = 24;
MXWeakify(self);
self.beaconInfoSummaryListener = [self.mxSession.aggregations.beaconAggregations listenToBeaconInfoSummaryUpdateInRoomWithId:self.roomId handler:^(id<MXBeaconInfoSummaryProtocol> beaconInfoSummary) {
MXStrongifyAndReturnIfNil(self);
[self updateCurrentUserLocationSharingStatus];
[self refreshFirstCellWithBeaconInfoSummary:beaconInfoSummary];
}];
}
@@ -794,7 +795,6 @@ const CGFloat kTypingCellHeight = 24;
if (cellIndex != NSNotFound)
{
[self updateCurrentUserLocationSharingStatus];
roomBubbleCellData.beaconInfoSummary = beaconInfoSummary;
[self refreshCells];
}