Skip to content

Commit

Permalink
chore: fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AsteriskZuo committed Dec 12, 2023
1 parent ecc9bbc commit 8a47341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/biz/MessageList/MessageList.hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export function useMessageListApi(params: {
) => {
const getBasic = (): MessageListItemBasic => {
let user = im.getUserInfo(d.msg?.from);
if (user === undefined) {
if (user === undefined || user.nickName === undefined) {
user = im.userInfoFromMessage(d.msg);
}
const nickName =
Expand Down

0 comments on commit 8a47341

Please sign in to comment.