@@ -5,6 +5,7 @@ import { useAppNavigation } from "@/app/navigation/useAppNavigation";
55import { useActiveChannelHeader } from "@/features/channels/useActiveChannelHeader" ;
66import { useChannelPaneHandlers } from "@/features/channels/useChannelPaneHandlers" ;
77import { useMessageEventProfilePubkeys } from "@/features/channels/useMessageEventProfilePubkeys" ;
8+ import { useMessageOwnerProfiles } from "@/features/channels/useMessageOwnerProfiles" ;
89import { useThreadTargetSync } from "@/features/channels/useThreadTargetSync" ;
910import {
1011 useChannelMembersQuery ,
@@ -350,6 +351,7 @@ export function ChannelScreen({
350351 profiles : messageProfilesQuery . data ?. profiles ,
351352 relayAgents,
352353 } ) ;
354+ const messageOwnerProfiles = useMessageOwnerProfiles ( messageProfiles ) ;
353355 // Agent set for ChannelPane's own consumers (DM huddle member resolution,
354356 // the agents list): the community-scoped baseline shared by every surface,
355357 // widened with channel-member roles and this screen's profile lookup.
@@ -393,13 +395,15 @@ export function ChannelScreen({
393395 personaLookup ,
394396 respondToLookup ,
395397 relaySelfPubkey ,
398+ messageOwnerProfiles ,
396399 ) ,
397400 [
398401 activeChannel ,
399402 channelMembers ,
400403 currentProfile ?. avatarUrl ,
401404 currentPubkey ,
402405 messageProfiles ,
406+ messageOwnerProfiles ,
403407 personaLookup ,
404408 relaySelfPubkey ,
405409 respondToLookup ,
@@ -437,6 +441,7 @@ export function ChannelScreen({
437441 currentPubkey,
438442 currentAvatarUrl : currentProfile ?. avatarUrl ?? null ,
439443 profiles : messageProfiles ,
444+ ownerProfiles : messageOwnerProfiles ,
440445 members : channelMembers ,
441446 personaLookup,
442447 respondToLookup,
@@ -934,6 +939,7 @@ export function ChannelScreen({
934939 profilePanelView = { profilePanelView }
935940 personaLookup = { personaLookup }
936941 profiles = { messageProfiles }
942+ ownerProfiles = { messageOwnerProfiles }
937943 firstUnreadMessageId = { firstUnreadMessageId }
938944 unreadCount = { unreadCount }
939945 targetMessageId = { mainTimelineTargetMessageId }
0 commit comments