PSB-196 fix message bubbles by removing timestamps

This commit is contained in:
Frank Rotermund
2022-11-15 15:26:53 +01:00
parent 3a6c5d5b9f
commit ab8c98183d
3 changed files with 43 additions and 57 deletions
@@ -446,20 +446,6 @@ const CGFloat kTypingCellHeight = 24;
NSArray *bubbleComponents = cellData.bubbleComponents;
BOOL isCollapsableCellCollapsed = cellData.collapsable && cellData.collapsed;
if (BWIBuildSettings.shared.enableLastMessageTimestamp) {
// Display timestamp of the last message
if (cellData.containsLastMessage && !isCollapsableCellCollapsed)
{
[bubbleCell addTimestampLabelForComponent:cellData.mostRecentComponentIndex];
}
} else {
// Display timestamp of every message
if (!isCollapsableCellCollapsed)
{
[bubbleCell addTimestampLabelForComponent:cellData.mostRecentComponentIndex];
}
}
// Display timestamp of the message if needed
[cellDecorator addTimestampLabelIfNeededToCell:bubbleCell cellData:cellData];