mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-20 19:19:52 +00:00
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:
@@ -652,6 +652,7 @@
|
||||
[attachment replaceData:responseData];
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:kBITFeedbackUpdateAttachmentThumbnail object:attachment];
|
||||
[[BITHockeyManager sharedHockeyManager].feedbackManager saveMessages];
|
||||
[self.tableView reloadData];
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user