Skip to content

Commit 9bdd9c4

Browse files
authored
fix(inbox): Inbox message not loading properly from cache (#81) LP-4998
1 parent 371153e commit 9bdd9c4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Leanplum-SDK/Classes/LPInbox.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,9 @@ - (void)load
301301

302302
// Download images.
303303
BOOL willDownloadImages = NO;
304-
for (LPInboxMessage *message in messages) {
305-
willDownloadImages |= [message downloadImageIfPrefetchingEnabled];
304+
for (NSString *messageId in messages) {
305+
LPInboxMessage *inboxMessage = [self messageForId:messageId];
306+
willDownloadImages |= [inboxMessage downloadImageIfPrefetchingEnabled];
306307
}
307308

308309
// Trigger inbox changed when all images are downloaded.

0 commit comments

Comments
 (0)