Bug Fix - Chat screen: the message overlaps its timestamp

(related to #1361)
This commit is contained in:
Giom Foret
2017-06-28 18:51:05 +02:00
parent 0f14ab0d29
commit ffc142f64b
3 changed files with 64 additions and 13 deletions
+21
View File
@@ -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