Skip to content

Interface: Message

Defined in: src/types/chat.ts:24

Frontend Message interface Extends the shared MessageDocument schema with client-side flags and specific types.

Extends

  • Omit<MessageDocument, "id" | "createdAt" | "editedAt" | "replyTo" | "reactions" | "reactionPreviews">

Properties

chapter?

optional chapter?: string

Defined in: types/firestore.ts:183

Inherited from

MessageDocument.chapter


clientTimestamp?

optional clientTimestamp?: number

Defined in: types/firestore.ts:203

Inherited from

MessageDocument.clientTimestamp


comment?

optional comment?: string

Defined in: types/firestore.ts:184

Inherited from

MessageDocument.comment


createdAt?

optional createdAt?: FirebaseTimestamp

Defined in: src/types/chat.ts:26


editedAt?

optional editedAt?: FirebaseTimestamp

Defined in: src/types/chat.ts:27


expireAt?

optional expireAt?: FirestoreTimestamp

Defined in: types/firestore.ts:204

Inherited from

MessageDocument.expireAt


id

id: string

Defined in: src/types/chat.ts:25


isEdited?

optional isEdited?: boolean

Defined in: types/firestore.ts:189

Inherited from

MessageDocument.isEdited


isEntry?

optional isEntry?: boolean

Defined in: types/firestore.ts:181

Inherited from

MessageDocument.isEntry


isFailed?

optional isFailed?: boolean

Defined in: src/types/chat.ts:35


isNote?

optional isNote?: boolean

Defined in: types/firestore.ts:180

Inherited from

MessageDocument.isNote


isOptimistic?

optional isOptimistic?: boolean

Defined in: src/types/chat.ts:33


isSystemMessage?

optional isSystemMessage?: boolean

Defined in: types/firestore.ts:176

Inherited from

MessageDocument.isSystemMessage


messageData?

optional messageData?: Record<string, string | number>

Defined in: src/types/chat.ts:44

Overrides

MessageDocument.messageData


messageType?

optional messageType?: "text" | "streakAnnouncement" | "notePostedAnnouncement" | "aiNotePostedAnnouncement" | "studyNote" | "system" | "userJoined" | "userLeft" | "userKicked" | "unityAnnouncement" | "inactivityRemoval"

Defined in: src/types/chat.ts:28

Overrides

MessageDocument.messageType


optimisticId?

optional optimisticId?: string

Defined in: src/types/chat.ts:34

Overrides

MessageDocument.optimisticId


originalNoteId?

optional originalNoteId?: string

Defined in: types/firestore.ts:185

Inherited from

MessageDocument.originalNoteId


reactionPreviews?

optional reactionPreviews?: Record<string, object[]>

Defined in: src/types/chat.ts:48


reactions?

optional reactions?: Record<string, string[]>

Defined in: src/types/chat.ts:47


replyTo?

optional replyTo?: string | { id: string; isNote: boolean; senderNickname: string; text: string; } | null

Defined in: src/types/chat.ts:38


scripture?

optional scripture?: string

Defined in: types/firestore.ts:182

Inherited from

MessageDocument.scripture


senderId

senderId: string

Defined in: types/firestore.ts:170

Inherited from

MessageDocument.senderId


senderNickname?

optional senderNickname?: string

Defined in: src/types/chat.ts:29

Overrides

MessageDocument.senderNickname


senderPhotoURL?

optional senderPhotoURL?: string | null

Defined in: src/types/chat.ts:30

Overrides

MessageDocument.senderPhotoURL


text

text: string

Defined in: types/firestore.ts:169

Inherited from

MessageDocument.text


translations?

optional translations?: Record<string, string>

Defined in: types/firestore.ts:200

Inherited from

MessageDocument.translations

Released under the MIT License.