We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ServicesManager.sharedInstance().myUser.contact?.photoData
Return always nil, even the profile image is set and visible at web-sandbox.openrainbow.com
The text was updated successfully, but these errors were encountered:
We just fixed the Swift sample app, may you have a look at this code as it is displaying contact photo and it is working for me.
Sorry, something went wrong.
Nope does not work at all.
First I think you have wrong parameter anyway in function down bellow. Parameters should be NSNotification instead of Notification
@objc func didGetInfo(notification : Notification) { if let contact = notification.object as? Contact { self.updateUI(contact) } }
Then if statements is wrong and self.updateUI will never will be executed . Because NSNotification is NSDictionary and correct declaration should be
guard let data:NSDictionary = notification.object as? NSDictionary else {return} guard let contact:Contact = data.object(forKey: "contact") as? Contact else { return }
But property contact.photoData is still nil. Even I called
servicesManager?.contactsManagerService.fetchRemoteContactDetail(servicesManager?.myUser.contact)
which by documentation is not necessary for personal profile.
No branches or pull requests
Return always nil, even the profile image is set and visible at web-sandbox.openrainbow.com
The text was updated successfully, but these errors were encountered: