Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Moved creating cached preview items to didSelectAttachmentMethod#487

Merged
ElektrojungeAtWork merged 1 commit into
bitstadium:release/5.1.0from
bmourat:fix/display-correct-image
Dec 11, 2017
Merged

Moved creating cached preview items to didSelectAttachmentMethod#487
ElektrojungeAtWork merged 1 commit into
bitstadium:release/5.1.0from
bmourat:fix/display-correct-image

Conversation

@bmourat

@bmourat bmourat commented Dec 11, 2017

Copy link
Copy Markdown
Contributor

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]];
}

@ElektrojungeAtWork ElektrojungeAtWork merged commit b53a1f2 into bitstadium:release/5.1.0 Dec 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants