Skip to content
New issue

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

Avatar initials are not displayed in ChannelList for one-one converstations #139

Closed
familywiser1 opened this issue Feb 12, 2020 · 3 comments
Assignees
Labels
Bug Something isn't working in the SDK

Comments

@familywiser1
Copy link

Describe the bug
A clear and concise description of what the bug is.
Avatar initials are not displayed in ChannelList for one-one converstations. Channel Screens shows the avatar initials correctly.

Dev environment info (please complete/provide the following information):

  • Package version (stream-chat-react-native/stream-chat-expo): latest stream-chat-expo
  • react-native or expo version: expo
  • Device/Emulator (android/ios) and OS version: all

To Reproduce
Steps to reproduce the behavior:

  1. Follow getting started with react native tutorial at https://getstream.io/chat/react-native-chat/tutorial/
  2. create a one-one conversation (a channel with only 2 members and no name) by following instructions at https://getstream.io/chat/docs/channel_conversations/?language=js - (please note that there is no channel name since it is one-one)

Expected behavior
Avatar initials should be displayed in ChannelList for one-one conversations

Additional context
problem is here - https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/ChannelPreviewMessenger.js#L107 . It takes channel.data.name which is empty for 1-1 conversations. You should send initials of 2nd member in this case.

Screenshots
If applicable, add screenshots to help explain your problem.

@familywiser1 familywiser1 added the Bug Something isn't working in the SDK label Feb 12, 2020
@vishalnarkhede
Copy link
Contributor

@familywiser1 thanks for bringing this up. We will fix this in next release :)

@vishalnarkhede
Copy link
Contributor

@familywiser1 this has been fixed as part of 0.6.6. Please let us know if it works for you!

@familywiser1
Copy link
Author

Thanks. it is working now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working in the SDK
Projects
None yet
Development

No branches or pull requests

2 participants