Use fixes from https://github.com/bitstadium/HockeySDK-iOS/pull/417 and trigger reload of content in tableview to fix UI glitch

This commit is contained in:
Benjamin Scholtysik (Reimold)
2017-06-13 22:57:23 -07:00
parent c1ffd7291d
commit 46cde6f2d6
3 changed files with 9 additions and 0 deletions

View File

@@ -652,6 +652,7 @@
[attachment replaceData:responseData];
[[NSNotificationCenter defaultCenter] postNotificationName:kBITFeedbackUpdateAttachmentThumbnail object:attachment];
[[BITHockeyManager sharedHockeyManager].feedbackManager saveMessages];
[self.tableView reloadData];
});
}
}

View File

@@ -780,6 +780,7 @@ typedef void (^BITLatestImageFetchCompletionBlock)(UIImage *_Nonnull latestImage
int attachmentIndex = 0;
for (BITFeedbackMessageAttachment *attachment in matchingSendInProgressOrInConflictMessage.attachments) {
attachment.identifier = feedbackAttachments[attachmentIndex][@"id"];
attachment.sourceURL = feedbackAttachments[attachmentIndex][@"url"];
attachmentIndex++;
}
}

View File

@@ -209,6 +209,13 @@
#pragma mark - Persistence Helpers
- (void)setFilename:(NSString *)filename {
if (filename) {
filename = [_cachePath stringByAppendingPathComponent:[filename lastPathComponent]];
}
_filename = filename;
}
- (NSString *)possibleFilename {
if (_tempFilename) {
return _tempFilename;