question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Avatar for user is not working

See original GitHub issue

When passing down messages based on Message Object defined in the documentation, avatar cannot be set for user. The same message object works fine for bot avatar, but I’d like to be able to add an avatar also for the user.

Example bot message object:

{
  _id: generateMessageID(),
  text: talk.response,
  createdAt: new Date(),
  user: {
    _id: 2,
    name: botName,
    avatar: botAvatar
  },
  metadata: talk,
}

Example bot message object:

{
  _id: generateMessageID(),
  text: data.response_text,
  createdAt: new Date(),
  user: {
    _id: 1,
    name: userName,
    avatar: userAvatar
  },
  metadata: data
}
  • React Native version: 0.45.1
  • react-native-gifted-chat version: 0.1.4

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
cooperkacommented, Jul 21, 2017

Scratch that ^ I think you’re right that this is just a bug. It makes intuitive sense that if you provide an avatar for the current user, it should be rendered.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Profile avatar not working - WordPress.org
Hi, We have a custom image field (avatar) in the user profile. While we can upload and image and it replaces the gravatar...
Read more >
How to Fix: Facebook Avatar Not Showing Up - YouTube
In this tutorial, we'll share a few approaches that you can try and fix the issue when your Facebook avatar is not working....
Read more >
Bot Avatar and User Avatar images not working
Solved: Hi, Bot and User Avatar images are not working. Does anybody know how to fix this? Please refer to the below code...
Read more >
Discord PY not getting user Avatar - Stack Overflow
I updated to V2 of Discord PY but avatars don't work, I am using all intents and its all set in developer portal....
Read more >
Profile Photo/Avatar not showing up in Gmail - Google Support
It shows when I login, and it shows up as my profile photo in the email thread, but to other Gmail users (including...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found