feat: mark all as read action in chat

This commit is contained in:
Kainoa Kanter 2023-04-07 23:49:36 -07:00
parent 594ee74324
commit 0717454d49

View file

@ -121,12 +121,15 @@ window.addEventListener("resize", () => {
deviceKind === "smartphone" || window.innerWidth <= MOBILE_THRESHOLD;
});
async function readAllMessagingMessages() {
await os.api("i/read-all-messaging-messages");
}
const headerActions = $computed(() => [
{
asFullButton: true,
icon: "ph-plus ph-bold ph-lg",
text: i18n.ts.addUser,
handler: startMenu,
icon: "ph-check ph-bold ph-lg",
text: i18n.ts.markAllAsRead,
handler: readAllMessagingMessages,
},
]);