Skip to content

Conversation

@Nevazhnovu
Copy link
Collaborator

@Nevazhnovu Nevazhnovu commented Sep 16, 2025

DIA-5989
React Native: Crash when calling loadMessage() without authId in package on iOS.

loadMessage(params?: LoadMessageParams) {
ReactNativeCmp.loadMessage(params);
ReactNativeCmp.loadMessage(params ?? { authId: undefined });
}
Copy link
Member

@andresilveirah andresilveirah Sep 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Nevazhnovu I think we can simplify this using default params:

loadMessage(params: LoadMessageParams = { authId: undefined }) {
  ReactNativeCmp.loadMessage(params);
}

Can you give it a try? Check if users can still call loadMessage() (without params).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andresilveirah it works! Just have pushed a fix

@andresilveirah andresilveirah merged commit af3f931 into main Sep 17, 2025
3 of 5 checks passed
@andresilveirah andresilveirah deleted the DIA-5989-loadmessage-without-authid branch September 17, 2025 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants