Skip to content

Commit c6e6654

Browse files
committed
Check for prompts before entering logic
* We want to avoid evaluateMessageDisplayQueue being call if no prompts are available
1 parent ddf63b2 commit c6e6654

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

iOS_SDK/OneSignalSDK/Source/OSMessagingController.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,8 @@ - (void)messageViewDidSelectAction:(OSInAppMessage *)message withAction:(OSInApp
539539
if (action.clickUrl)
540540
[self handleMessageActionWithURL:action];
541541

542-
[self handlePromptActions:action.promptActions];
542+
if (action.promptActions && action.promptActions.count > 0)
543+
[self handlePromptActions:action.promptActions];
543544

544545
if (self.actionClickBlock)
545546
self.actionClickBlock(action);

0 commit comments

Comments
 (0)