From 3c238935495a3b8ada3b8c4e8c9f8e480ae9009c Mon Sep 17 00:00:00 2001 From: Jannis Braun <151788261+TheZwiss@users.noreply.github.com> Date: Fri, 20 Mar 2026 22:09:40 +0100 Subject: [PATCH] feat: add mark_unread to WebSocket event types --- packages/shared/src/types.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/shared/src/types.ts b/packages/shared/src/types.ts index 0e3e6d97..223a6ab0 100644 --- a/packages/shared/src/types.ts +++ b/packages/shared/src/types.ts @@ -276,6 +276,7 @@ export type ClientEvent = | { type: 'reaction_add'; messageId: string; emoji: string } | { type: 'reaction_remove'; messageId: string; emoji: string } | { type: 'channel_ack'; channelId: string; messageId: string } + | { type: 'mark_unread'; channelId: string; messageId: string } | { type: 'dm_call_start'; dmChannelId: string } | { type: 'dm_call_accept'; dmChannelId: string } | { type: 'dm_call_reject'; dmChannelId: string } @@ -338,6 +339,7 @@ export type ServerEvent = | { type: 'category_deleted'; categoryId: string; spaceId: string } | { type: 'channel_layout_updated'; spaceId: string; channels: Channel[]; categories: ChannelCategory[] } | { type: 'space_layout_updated'; layout: SpaceLayoutItem[]; folders: SpaceFolder[]; updatedAt?: number } + | { type: 'mark_unread'; channelId: string; messageId: string } | { type: 'pong' } | { type: 'error'; message: string };