Skip to content

Commit

Permalink
fix(inbox): Inbox message not loading properly from cache (#81) LP-4998
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisoyama committed Oct 3, 2017
1 parent 371153e commit 9bdd9c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Leanplum-SDK/Classes/LPInbox.m
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,9 @@ - (void)load

// Download images.
BOOL willDownloadImages = NO;
for (LPInboxMessage *message in messages) {
willDownloadImages |= [message downloadImageIfPrefetchingEnabled];
for (NSString *messageId in messages) {
LPInboxMessage *inboxMessage = [self messageForId:messageId];
willDownloadImages |= [inboxMessage downloadImageIfPrefetchingEnabled];
}

// Trigger inbox changed when all images are downloaded.
Expand Down

0 comments on commit 9bdd9c4

Please sign in to comment.