Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create PendingInteraction model after configuration #1148

Conversation

igorkravchenko
Copy link
Contributor

Make sure PendingInteraction model is created after configuration to prevent subscription for unread message count and pending SC status from failure, because 'pubsub' is created only when Core SDK is configured.

MOB-3871

What was solved?

Release notes:

  • Feature
  • Ignore
  • Release notes (Is it clear from the description here?)
  • Migration guide (If changes are needed for integrator already using the SDK - what needs to be communicated? Add underneath please)

Additional info:

  • Is the feature sufficiently tested? All tests fixed? Necessary unit, acceptance, snapshots added? Check that at least new public classes & methods are covered with unit tests
  • Did you add logging beneficial for troubleshooting of customer issues?
  • Did you add new logging? We would like the logging between platforms to be similar. Refer to Logging from iOS SDKsThings to consider for newly added logs in Confluence for more information.

Screenshots:

@@ -29,6 +30,14 @@ extension SecureConversations {
hasPending || unreadCount > 0
}
.assign(to: &$hasPendingInteraction)

if self.pendingStatusCancellationToken == nil {
print("Unable to subscribe to pending status updates")
Copy link
Contributor

@ykyivskyi-gl ykyivskyi-gl Dec 12, 2024

Choose a reason for hiding this comment

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

should we use log instead of print?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems to me that this has to be a part of SDK configuration and affect SDK configuration completion result. So instead of adding logs I added error handling 047da93.

@igorkravchenko
Copy link
Contributor Author

!squash

Make sure PendingInteraction model is created after configuration to prevent subscription for unread message count and pending SC status from failure, because 'pubsub' is created only when Core SDK is configured.

MOB-3871
@sm-deployer sm-deployer force-pushed the fix/MOB-3871-hasPendingInteraction-is-not-updated branch from 047da93 to dbf8da4 Compare December 12, 2024 14:21
@igorkravchenko igorkravchenko merged commit 76c87b1 into feature/entry-widget-and-secure-conversations-v2 Dec 12, 2024
8 checks passed
@igorkravchenko igorkravchenko deleted the fix/MOB-3871-hasPendingInteraction-is-not-updated branch December 12, 2024 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants