mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-03 22:56:57 +02:00
uploading media displays a pie chart (need to add the statistic)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user