mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 21:02:28 +00:00
Add mark-read actions to DM UI
This commit is contained in:
1 parent
d3a9eb45d9
commit
ce7077da2d
5 files changed
+192
-1
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user