Open nomanshahzad opened 1 week ago
getUserInfo(userIds).then(usersInfo => { //usersInfo: {[userId]: {avatarurl: '', nickname: '', userId: ''}} rootStore.addressStore.setAppUserInfo(usersInfo); }); You can set the avatar and nickname using method setAppUserInfo
I am trying to display the profile photo as the avatar for each contact in the conversation list. However, when I set the
avatarUrl
prop for the conversation list, it doesn’t seem to work, and the value appears asundefined
. Could anyone suggest any alternative solutions or workarounds for this?Below are my code snippets: