aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ui
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-08-27 23:47:46 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-08-27 23:47:46 -0700
commitf829b51d1a2c049c24c2bb349b1c13edef12fd42 (patch)
tree04ef63a5a19100ad4d8b47b22d6adecc3bcc7a72 /src/ui
parent4d7da7ed73f51a4cf4525a93801c5adb9af9ebbd (diff)
Fixed #271: change attachment name to avoid caching side effect
Diffstat (limited to 'src/ui')
-rwxr-xr-xsrc/ui/ios/MCOMessageView.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/ios/MCOMessageView.mm b/src/ui/ios/MCOMessageView.mm
index e3786bb5..1c541548 100755
--- a/src/ui/ios/MCOMessageView.mm
+++ b/src/ui/ios/MCOMessageView.mm
@@ -173,7 +173,7 @@ pre {\
void (^replaceImages)(NSError *error) = ^(NSError *error) {
NSData * downloadedData = [[self delegate] MCOMessageView:self dataForPartWithUniqueID:partUniqueID];
NSData * previewData = [[self delegate] MCOMessageView:self previewForData:downloadedData isHTMLInlineImage:[MCOCIDURLProtocol isCID:url]];
- NSString * filename = [NSString stringWithFormat:@"%lu", (unsigned long)urlString.hash];
+ NSString * filename = [NSString stringWithFormat:@"%u", downloadedData.hash];
NSURL * cacheURL = [self _cacheJPEGImageData:previewData withFilename:filename];
NSDictionary * args = @{ @"URLKey": urlString, @"LocalPathKey": cacheURL.absoluteString };