Upasna Sharma Upasna Sharma - 5 months ago 59
iOS Question

Quickblox Profile Pic issue in swift

I am developing a

chat
application using
quickblox
api for chat . I am able to send and receive messages but profile picture of sender is missing. if anyone knows Please help me that How we fetch the sender
image
with messages.

Answer

You can get profile pic using below code :

NSUInteger userProfilePictureID = user.blobID; // user - an instance of QBUUser class

// download user profile picture
[QBRequest downloadFileWithUID:userProfilePictureID successBlock:nil statusBlock:nil errorBlock:nil];