Display Name not present on messages

Display message and avatar are not present in the messages i get from MessageRepository.

I’m using this code:

import {  MessageRepository } from '@amityco/ts-sdk-react-native'

        { subChannelId: '', limit: 100, sortBy: 'segmentDesc' },
() => {

i have encountered this proplem too. is used extradata field to write users data

Hello @Referi , In the messages you receive from MessageRepository, there’s already a ‘creator_id’ included. If you want to display the sender’s name and avatar, you can use this ‘creator_id’ to retrieve the user information. For more details on how to get user information, you can refer to this link: Get User Information - Amity Docs.

1 Like