bitstadium / HockeySDK-iOS

HockeyApp was retired and the SDKs are deprecated. Please use App Center instead.
https://github.com/microsoft/appcenter-sdk-apple
Other
597 stars 268 forks source link

Moved creating cached preview items to didSelectAttachmentMethod #487

Closed bmourat closed 6 years ago

bmourat commented 6 years ago

During first clicking on the attachment in the feedback list, it is not displayed properly as the condition below is not true, and we cannot set current preview index properly:

if (self.cachedPreviewItems.count > [self.cachedPreviewItems indexOfObject:attachment]) {
    [previewController setCurrentPreviewItemIndex:[self.cachedPreviewItems indexOfObject:attachment]];
}