Skip to content

Commit

Permalink
Merge pull request #279 from MyPureCloud/hotfix/MTSDK-391_iOS_demo_ap…
Browse files Browse the repository at this point in the history
…p_crashes_when_deployment_config_fetched

MTSDK 391 iOS demo app crashes when deployment config fetched
  • Loading branch information
ksw5 authored May 17, 2024
2 parents 0d2aece + 0bb3d3d commit dc917b2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions iosApp/iosApp/TestbedViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -431,11 +431,13 @@ extension TestbedViewController : UITextFieldDelegate {
self.info.text = "FileAttachmentProfile: <\(messenger.getFileAttachmentProfile())>"
case (.deployment, _):
messenger.fetchDeployment { deploymentConfig, error in
if let error = error {
self.info.text = "<\(error.localizedDescription)>"
return
DispatchQueue.main.async {
if let error = error {
self.info.text = "<\(error.localizedDescription)>"
return
}
self.info.text = "<\(deploymentConfig?.description() ?? "Unknown deployment config")>"
}
self.info.text = "<\(deploymentConfig?.description() ?? "Unknown deployment config")>"
}
case (.invalidateConversationCache, _):
messenger.invalidateConversationCache()
Expand Down

0 comments on commit dc917b2

Please sign in to comment.