Start a conversation

How to add an avatar and extra details to chat user?

How to add an avatar?

You may set the avatar for the chat user via the "blob_id" field. You will need to upload a file into the Content Module and then connect it to the user with the mentioned "blob_id" field, as it performs as a link to the uploaded file in the Content Module.


Please do not hesitate to check our SDK documentation regarding this matter:
iOS: https://docs.quickblox.com/docs/ios-users#set-user-avatar
Android: https://docs.quickblox.com/docs/android-users#set-user-avatar
JavaScript: https://docs.quickblox.com/docs/js-users#set-user-avatar


How to add extra details?

In case you would like to display additional user details, you may create a class in Custom Objects (e.g., UserExtraProfile) and write all the extra fields of your user to this class. Other users can retrieve these fields with the "user_id" field filter in the "GET" request.

Please feel free to check our SDK documentation about this topic:
iOS: https://docs.quickblox.com/docs/ios-custom-objects
Android: https://docs.quickblox.com/docs/android-custom-objects
JavaScript: https://docs.quickblox.com/docs/js-custom-objects
React Native: https://docs.quickblox.com/docs/react-native-custom-objects
Flutter: https://docs.quickblox.com/docs/flutter-custom-objects

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Maksym Pidhorbunskyi

  2. Posted
  3. Updated

Comments