6111: add refresh of live banner visibility when receive beacon from live sharing

This commit is contained in:
MaximeE
2022-05-11 18:18:21 +02:00
parent e23abd8811
commit 9b126b835d
4 changed files with 8 additions and 6 deletions
@@ -59,7 +59,7 @@ const CGFloat kTypingCellHeight = 24;
@property (nonatomic) NSInteger typingCellIndex;
@property(nonatomic, readwrite) BOOL isCurrentUserSharingIsLocation;
@property(nonatomic, readwrite) BOOL isCurrentUserSharingActiveLocation;
@end
@@ -794,6 +794,7 @@ const CGFloat kTypingCellHeight = 24;
if (cellIndex != NSNotFound)
{
[self updateCurrentUserLocationSharingStatus];
roomBubbleCellData.beaconInfoSummary = beaconInfoSummary;
[self refreshCells];
}
@@ -1203,11 +1204,11 @@ const CGFloat kTypingCellHeight = 24;
return;
}
BOOL isUserSharingIsLocation = [locationService isCurrentUserSharingIsLocationInRoomWithId:self.roomId];
BOOL isUserSharingActiveLocation = [locationService isCurrentUserSharingActiveLocationInRoomWithId:self.roomId];
if (isUserSharingIsLocation != self.isCurrentUserSharingIsLocation)
if (isUserSharingActiveLocation != self.isCurrentUserSharingActiveLocation)
{
self.isCurrentUserSharingIsLocation = [locationService isCurrentUserSharingIsLocationInRoomWithId:self.roomId];
self.isCurrentUserSharingActiveLocation = [locationService isCurrentUserSharingActiveLocationInRoomWithId:self.roomId];
dispatch_async(dispatch_get_main_queue(), ^{
[self.roomDataSourceDelegate roomDataSourceDidUpdateCurrentUserSharingLocationStatus:self];