Update Riot/Categories/MXKRoomBubbleTableViewCell+Riot.m

Co-Authored-By: manuroe <manuroe@users.noreply.github.com>
This commit is contained in:
SBiOSoftWhare 2019-05-22 17:28:08 +02:00 committed by GitHub
parent a62548c545
commit 4e1e95fd2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,7 +59,7 @@ NSString *const kMXKRoomBubbleCellTapOnReceiptsContainer = @"kMXKRoomBubbleCellT
isLastMessageMostRecentComponent = roomBubbleCellData.containsLastMessage && (componentIndex == roomBubbleCellData.mostRecentComponentIndex);
}
// Display timestamp on the left for selected component when there is enough space
// Display timestamp on the left for selected component when it cannot overlap other UI elements like user's avatar
BOOL displayLabelOnLeft = roomBubbleCellData.displayTimestampForSelectedComponentOnLeftWhenPossible && !isFirstDisplayedComponent && !isLastMessageMostRecentComponent;
[self addTimestampLabelForComponent:component