mirror of
https://github.com/block/buzz.git
synced 2026-11-02 23:41:08 +00:00
fix(desktop): fetch channel member profiles in timeline
Co-authored-by: npub12gtutshhh76rx0jx697f32f9tffd4hhp3hx58fp4x6u4uemkm7sqf8f757 <5217c5c2f7bfb4333e46d17c98a9255a52dadee18dcd43a43536b95e6776dfa0@sprout-oss.stage.blox.sqprod.co> Signed-off-by: npub12gtutshhh76rx0jx697f32f9tffd4hhp3hx58fp4x6u4uemkm7sqf8f757 <5217c5c2f7bfb4333e46d17c98a9255a52dadee18dcd43a43536b95e6776dfa0@sprout-oss.stage.blox.sqprod.co>
This commit is contained in:
parent
6abf614fd4
commit
0a748dee51
@@ -310,6 +310,7 @@ export function ChannelScreen({
|
||||
...new Set([
|
||||
...messageAuthorPubkeys,
|
||||
...messageMentionPubkeys,
|
||||
...(channelMembers ?? []).map((member) => member.pubkey),
|
||||
...activeDmParticipantPubkeys,
|
||||
...knownAgentPubkeys,
|
||||
...typingEntries.map((entry) => entry.pubkey),
|
||||
@@ -317,6 +318,7 @@ export function ChannelScreen({
|
||||
],
|
||||
[
|
||||
activeDmParticipantPubkeys,
|
||||
channelMembers,
|
||||
knownAgentPubkeys,
|
||||
messageAuthorPubkeys,
|
||||
messageMentionPubkeys,
|
||||
@@ -603,9 +605,7 @@ export function ChannelScreen({
|
||||
} = useChannelAgentSessions({
|
||||
activeChannel,
|
||||
activeChannelId,
|
||||
// Loaded only once none of the three agent queries are in their initial
|
||||
// fetch, so a channel with genuinely zero agents still auto-closes a stale
|
||||
// agentSession param (a disabled query reports isLoading=false — fine).
|
||||
// Wait until agent queries leave initial load before resolving stale agentSession params.
|
||||
agentsLoaded:
|
||||
!channelMembersQuery.isLoading &&
|
||||
!managedAgentsQuery.isLoading &&
|
||||
|
||||
Reference in New Issue
Block a user