uploading media displays a pie chart (need to add the statistic)

This commit is contained in:
ylecollen
2015-01-08 18:25:43 +01:00
parent 8d5f726303
commit 7a0edfa63c
4 changed files with 20 additions and 37 deletions
@@ -1394,13 +1394,7 @@ NSString *const kCmdResetUserPowerLevel = @"/deop";
frame.size.width = contentSize.width;
frame.size.height = contentSize.height;
cell.attachmentView.frame = frame;
// Fade attachments during upload
if (message.isUploadInProgress) {
[((OutgoingMessageTableCell*)cell) startAnimating];
cell.attachmentView.hideActivityIndicator = YES;
} else {
cell.attachmentView.hideActivityIndicator = NO;
}
NSString *url = message.thumbnailURL;
if (message.messageType == RoomMessageTypeVideo) {
cell.playIconView.hidden = NO;
@@ -1425,6 +1419,14 @@ NSString *const kCmdResetUserPowerLevel = @"/deop";
[cell startProgressUI];
// wait after upload info
if (message.isUploadInProgress) {
[((OutgoingMessageTableCell*)cell) startUploadAnimating];
cell.attachmentView.hideActivityIndicator = YES;
} else {
cell.attachmentView.hideActivityIndicator = NO;
}
// Adjust Attachment width constant
cell.attachViewWidthConstraint.constant = contentSize.width;
} else {