Commit shadow merge and drop dead recipients branch

mergeProfileShadow mutated relatedProfiles in place but never invalidated
the snapshot, so block/mute shadow updates didn't render until an unrelated
commit. Call commit() after merging. Also drop the recipients branch, which
never ran since recipients is never assigned.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Eric Bailey
2026-06-09 15:15:33 -05:00
committed by Samuel Newman
parent fef1bad264
commit ffaa796473
+1 -6
View File
@@ -133,15 +133,10 @@ export class Convo {
snapshot: ConvoState | undefined
mergeProfileShadow(did: string, shadow: Partial<ProfileShadow>) {
this.recipients?.map((recipient, i) => {
if (recipient.did === did) {
const merged = mergeShadow(recipient, shadow)
this.recipients![i] = merged
}
})
const related = this.relatedProfiles.get(did)
if (related) {
this.relatedProfiles.set(did, mergeShadow(related, shadow))
this.commit()
}
}