Type Alias: ChatSnapshot
ChatSnapshot =
object
Defined in: hooks/useChat.ts:15
Everything a chat view needs, recomputed whenever the chat changes.
Properties
activeScriptId
activeScriptId:
string|null
Defined in: hooks/useChat.ts:34
avatar
avatar:
string|undefined
Defined in: hooks/useChat.ts:22
canReply
canReply:
boolean
Defined in: hooks/useChat.ts:27
false in a read-only chat, regardless of what is pending.
entries
entries:
TranscriptEntry[]
Defined in: hooks/useChat.ts:16
firstUnreadKey
firstUnreadKey:
string|null
Defined in: hooks/useChat.ts:19
Anchor for an "unread" divider and for auto-scroll.
isGroup
isGroup:
boolean
Defined in: hooks/useChat.ts:25
lastActivityAt
lastActivityAt:
number
Defined in: hooks/useChat.ts:32
lastEntry
lastEntry:
TranscriptEntry|null
Defined in: hooks/useChat.ts:20
lastSeenAt
lastSeenAt:
number
Defined in: hooks/useChat.ts:33
nextDueAt
nextDueAt:
number|null
Defined in: hooks/useChat.ts:31
participantCount
participantCount:
number
Defined in: hooks/useChat.ts:24
participants
participants:
string[]
Defined in: hooks/useChat.ts:23
pendingChoice
pendingChoice:
PendingChoice|null
Defined in: hooks/useChat.ts:29
The reply awaiting the player, or null when nothing is pending.
title
title:
string
Defined in: hooks/useChat.ts:21
typing
typing:
string[]
Defined in: hooks/useChat.ts:30
unread
unread:
number
Defined in: hooks/useChat.ts:17