dm: delegate resolveProfileSummaryForPubkey to helper (fix moderation UI crash)

ProfileModerationController calls dmController.resolveProfileSummaryForPubkey
when rendering moderation overrides, but the method lives on the DM helper and
the controller didn't delegate it — so opening the profile modal's moderation
settings threw an uncaught "is not a function". Add the helper delegation
(createCompactProfileSummary right after it was already delegated). Covered by
the delegation regression test.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
thePR0M3TH3ANandClaude Opus 4.8 committed 2026-06-23 20:26:51 -04:00
1 parent eda212e187
commit 4f7baa3e99
2 files changed
+27

No files matched your search

@@ -680,6 +680,14 @@ export class ProfileDirectMessageController {
return this.helper.resolveActiveDmRecipient(...args);
}
// ProfileModerationController calls dmController.resolveProfileSummaryForPubkey
// (and createCompactProfileSummary, already delegated below). The method lives on
// the helper, so without this delegation the moderation-settings UI threw
// "is not a function" on open.
resolveProfileSummaryForPubkey(...args) {
return this.helper.resolveProfileSummaryForPubkey(...args);
}
createCompactProfileSummary(...args) {
return this.renderer.createCompactProfileSummary(...args);
}