MELS: Remove attributedTextMessageBackup and let MXKRoomBubleCellDataStoring implementation display attributedTextMessage or collapsedAttributedTextMessage

This commit is contained in:
manuroe
2017-07-11 15:35:11 +02:00
parent 642eacab31
commit d2d53062a4
2 changed files with 21 additions and 2 deletions
+21 -1
View File
@@ -133,12 +133,32 @@ static NSAttributedString *readReceiptVerticalWhitespace = nil;
return [super collaspseWith:cellData];
}
- (void)setCollapsed:(BOOL)collapsed
{
if (collapsed != self.collapsed)
{
super.collapsed = collapsed;
// Refresh only cells serie header
if (self.collapsedAttributedTextMessage && self.nextCollapsableCellData)
{
attributedTextMessage = nil;
}
}
}
#pragma mark -
- (NSAttributedString*)refreshAttributedTextMessage
{
// CAUTION: This method must be called on the main thread.
// Return the collapsed string only for cells serie header
if (self.collapsed && self.collapsedAttributedTextMessage && self.nextCollapsableCellData)
{
return super.collapsedAttributedTextMessage;
}
NSMutableAttributedString *currentAttributedTextMsg;
// Refresh the receipt flag during this process