diff --git a/src/components/views/rooms/ThreadSummary.tsx b/src/components/views/rooms/ThreadSummary.tsx index 9adec2e1ac..0c923606de 100644 --- a/src/components/views/rooms/ThreadSummary.tsx +++ b/src/components/views/rooms/ThreadSummary.tsx @@ -90,17 +90,16 @@ export const ThreadMessagePreview = ({ thread, showDisplayname = false }: IPrevi }, [lastReply, replacingEventId]); if (!preview) return null; - const sender = thread.roomState.getSentinelMember(lastReply.getSender()); return <> <MemberAvatar - member={sender} + member={lastReply.sender} fallbackUserId={lastReply.getSender()} width={24} height={24} className="mx_ThreadInfo_avatar" /> { showDisplayname && <div className="mx_ThreadInfo_sender"> - { sender?.name ?? lastReply.getSender() } + { lastReply.sender?.name ?? lastReply.getSender() } </div> } <div className="mx_ThreadInfo_content"> <span className="mx_ThreadInfo_message-preview">