The media download progress info (pie chart + stats) is displayed in the history.

This commit is contained in:
ylecollen
2015-01-08 11:31:25 +01:00
parent e14595c7ef
commit 8f3d32d79e
3 changed files with 98 additions and 1 deletions
@@ -1353,6 +1353,8 @@ NSString *const kCmdResetUserPowerLevel = @"/deop";
}
}
[cell stopProgressUI];
// Set message content
message.maxTextViewWidth = self.messagesTableView.frame.size.width - ROOM_MESSAGE_CELL_TEXTVIEW_LEADING_AND_TRAILING_CONSTRAINT_TO_SUPERVIEW;
CGSize contentSize = message.contentSize;
@@ -1393,6 +1395,8 @@ NSString *const kCmdResetUserPowerLevel = @"/deop";
@"info" : message.attachmentInfo};
}
[cell startProgressUI];
// Adjust Attachment width constant
cell.attachViewWidthConstraint.constant = contentSize.width;
} else {
@@ -2306,7 +2310,6 @@ NSString *const kCmdResetUserPowerLevel = @"/deop";
// the user validates the image
[self.imageValidationView setRightButtonTitle:@"OK" handler:^(CustomImageView* imageView, NSString* buttonTitle) {
// dismiss the image view
[weakSelf dismissCustomImageView];