Add mark-read actions to DM UI

This commit is contained in:
thePR0M3TH3AN committed 2026-01-19 14:48:05 -05:00
1 parent d3a9eb45d9
commit ce7077da2d
5 files changed
+192 -1

No files matched your search

+4
View File
@@ -127,6 +127,8 @@ export class AppShell {
onSelectConversation,
onSendMessage,
onSendZap,
onMarkConversationRead,
onMarkAllRead,
} = {}) {
if (!doc) {
throw new Error("AppShell requires a document reference.");
@@ -165,6 +167,7 @@ export class AppShell {
activeId: activeConversationId,
state: conversationState,
onSelect: onSelectConversation,
onMarkAllRead,
}),
);
@@ -187,6 +190,7 @@ export class AppShell {
conversationZapTotalSats:
totalsByConversation.get(activeConversation.id) || 0,
profileZapTotalSats: totalsByProfile.get(activeConversation.pubkey) || 0,
onMarkRead: onMarkConversationRead,
}),
);
main.appendChild(