mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 16:02:26 +00:00
dm: fix sending — add missing app-shell callback delegations
Clicking Send threw "this.controller.handleDmAppShellSendMessage is not a function". The DM app-shell renderer wires its callbacks on `this.controller` (ProfileDirectMessageController), but the controller never delegated them to `this.actions` — so Send, mark-read, mark-all-read, read-receipt/typing toggles and open-settings all threw and did nothing. Add the six delegations. The send path itself (encrypt -> sign -> publish) was fine. Regression test asserts the controller delegates each app-shell callback to this.actions. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
1 parent
084faa3543
commit
eda212e187
3 files changed
+89
-9
No files matched your search
@@ -623,6 +623,33 @@ export class ProfileDirectMessageController {
|
||||
return this.actions.handleSendProfileMessage(...args);
|
||||
}
|
||||
|
||||
// DM app-shell callbacks. The renderer wires these on `this.controller`, but the
|
||||
// delegations were missing — so Send / mark-read / settings / toggles all threw
|
||||
// "is not a function" and the app-shell DM UI couldn't send a message.
|
||||
handleDmAppShellSendMessage(...args) {
|
||||
return this.actions.handleDmAppShellSendMessage(...args);
|
||||
}
|
||||
|
||||
handleDmConversationMarkRead(...args) {
|
||||
return this.actions.handleDmConversationMarkRead(...args);
|
||||
}
|
||||
|
||||
handleDmMarkAllConversationsRead(...args) {
|
||||
return this.actions.handleDmMarkAllConversationsRead(...args);
|
||||
}
|
||||
|
||||
handleReadReceiptsToggle(...args) {
|
||||
return this.actions.handleReadReceiptsToggle(...args);
|
||||
}
|
||||
|
||||
handleTypingIndicatorsToggle(...args) {
|
||||
return this.actions.handleTypingIndicatorsToggle(...args);
|
||||
}
|
||||
|
||||
openDmSettingsModal(...args) {
|
||||
return this.actions.openDmSettingsModal(...args);
|
||||
}
|
||||
|
||||
handleAttachmentSelection(...args) {
|
||||
return this.actions.handleAttachmentSelection(...args);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user