mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Fix show error message when download fails
Previously we had our "queued" and "failed" logic backwards. // FREEBIE
This commit is contained in:
parent
97500d55ec
commit
727fb70806
|
@ -155,12 +155,10 @@
|
|||
|
||||
if (pointer.isDownloading) {
|
||||
adapter.messageBody = NSLocalizedString(@"ATTACHMENT_DOWNLOADING", nil);
|
||||
} else if (pointer.hasFailed) {
|
||||
adapter.messageBody = NSLocalizedString(@"ATTACHMENT_DOWNLOAD_FAILED", nil);
|
||||
} else {
|
||||
if (pointer.hasFailed) {
|
||||
adapter.messageBody = NSLocalizedString(@"ATTACHMENT_QUEUED", nil);
|
||||
} else {
|
||||
adapter.messageBody = NSLocalizedString(@"ATTACHMENT_DOWNLOAD_FAILED", nil);
|
||||
}
|
||||
adapter.messageBody = NSLocalizedString(@"ATTACHMENT_QUEUED", nil);
|
||||
}
|
||||
} else {
|
||||
DDLogError(@"We retrieved an attachment that doesn't have a known type : %@",
|
||||
|
|
Loading…
Reference in a new issue