mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 09:02:44 +02:00
Bug Fix - Chat screen: the message overlaps its timestamp
(related to #1361)
This commit is contained in:
@@ -348,6 +348,27 @@ static NSAttributedString *readReceiptVerticalWhitespace = nil;
|
||||
}
|
||||
}
|
||||
|
||||
- (NSInteger)oldestComponentIndex
|
||||
{
|
||||
// Update the related component index
|
||||
NSInteger oldestComponentIndex = NSNotFound;
|
||||
|
||||
NSArray *components = self.bubbleComponents;
|
||||
NSInteger index = 0;
|
||||
while (index < components.count)
|
||||
{
|
||||
MXKRoomBubbleComponent *component = components[index];
|
||||
if (component.attributedTextMessage && component.date)
|
||||
{
|
||||
oldestComponentIndex = index;
|
||||
break;
|
||||
}
|
||||
index++;
|
||||
}
|
||||
|
||||
return oldestComponentIndex;
|
||||
}
|
||||
|
||||
- (NSInteger)mostRecentComponentIndex
|
||||
{
|
||||
// Update the related component index
|
||||
|
||||
Reference in New Issue
Block a user