Reduce avatars #43
-
One feature I liked with react-native-gifted-chat was the ability, to reduce the amount of avatar images. I don't know of this kind of features were the reason for the performance lacks, but if this can be done in a performant, I would love to see it. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hey @hirbod this is very strange cause I did not implement that feature to show the avatar on every message. It actually should be shown only on the last one. Opened the example and it is working at it should work (and as you request). How did you made it work like opposite? |
Beta Was this translation helpful? Give feedback.
-
Hi @demchenkoalex, thanks for your heads up. I'll dig into this once again. I might've messed up with my mock data and user ids. I will recheck to make sure I haven't caused the issue. |
Beta Was this translation helpful? Give feedback.
-
haven't been working on the Chat since Januar and just returned to finish it yet. I just setup everything once again, made sure that my Objects and Data are correct, but stumbled again into this issue. Turned out updatedAt/createdAt was the reason. My server was sending them as ISO Date String, while your lib needs an Unix timestamp. I am converting my data to unix-timestamps now, which fixed the avatar issue. |
Beta Was this translation helpful? Give feedback.
Hi @demchenkoalex,
thanks for your heads up. I'll dig into this once again. I might've messed up with my mock data and user ids. I will recheck to make sure I haven't caused the issue.