feat: add dm_typing_stop event to clear typing indicator on message send
Broadcasts dm_typing_stop to DM members before dm_message_created, so the typing indicator clears immediately when a message arrives instead of lingering for up to 3 seconds after delivery.
This commit is contained in:
@@ -378,6 +378,7 @@ export type ServerEvent =
|
||||
| { type: 'dm_message_updated'; message: DmMessageWithUser }
|
||||
| { type: 'dm_message_deleted'; messageId: string; dmChannelId: string }
|
||||
| { type: 'dm_typing'; dmChannelId: string; userId: string; username: string }
|
||||
| { type: 'dm_typing_stop'; dmChannelId: string; userId: string }
|
||||
| { type: 'reaction_added'; messageId: string; reaction: Reaction }
|
||||
| { type: 'reaction_removed'; messageId: string; userId: string; emoji: string }
|
||||
| { type: 'channel_ack'; channelId: string; messageId: string }
|
||||
|
||||
Reference in New Issue
Block a user