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?
optionalchapter?:string
Defined in: types/firestore.ts:183
Inherited from
clientTimestamp?
optionalclientTimestamp?:number
Defined in: types/firestore.ts:203
Inherited from
MessageDocument.clientTimestamp
comment?
optionalcomment?:string
Defined in: types/firestore.ts:184
Inherited from
createdAt?
optionalcreatedAt?:FirebaseTimestamp
Defined in: src/types/chat.ts:26
editedAt?
optionaleditedAt?:FirebaseTimestamp
Defined in: src/types/chat.ts:27
expireAt?
optionalexpireAt?:FirestoreTimestamp
Defined in: types/firestore.ts:204
Inherited from
id
id:
string
Defined in: src/types/chat.ts:25
isEdited?
optionalisEdited?:boolean
Defined in: types/firestore.ts:189
Inherited from
isEntry?
optionalisEntry?:boolean
Defined in: types/firestore.ts:181
Inherited from
isFailed?
optionalisFailed?:boolean
Defined in: src/types/chat.ts:35
isNote?
optionalisNote?:boolean
Defined in: types/firestore.ts:180
Inherited from
isOptimistic?
optionalisOptimistic?:boolean
Defined in: src/types/chat.ts:33
isSystemMessage?
optionalisSystemMessage?:boolean
Defined in: types/firestore.ts:176
Inherited from
MessageDocument.isSystemMessage
messageData?
optionalmessageData?:Record<string,string|number>
Defined in: src/types/chat.ts:44
Overrides
messageType?
optionalmessageType?:"text"|"streakAnnouncement"|"notePostedAnnouncement"|"aiNotePostedAnnouncement"|"studyNote"|"system"|"userJoined"|"userLeft"|"userKicked"|"unityAnnouncement"|"inactivityRemoval"
Defined in: src/types/chat.ts:28
Overrides
optimisticId?
optionaloptimisticId?:string
Defined in: src/types/chat.ts:34
Overrides
originalNoteId?
optionaloriginalNoteId?:string
Defined in: types/firestore.ts:185
Inherited from
MessageDocument.originalNoteId
reactionPreviews?
optionalreactionPreviews?:Record<string,object[]>
Defined in: src/types/chat.ts:48
reactions?
optionalreactions?:Record<string,string[]>
Defined in: src/types/chat.ts:47
replyTo?
optionalreplyTo?:string| {id:string;isNote:boolean;senderNickname:string;text:string; } |null
Defined in: src/types/chat.ts:38
scripture?
optionalscripture?:string
Defined in: types/firestore.ts:182
Inherited from
senderId
senderId:
string
Defined in: types/firestore.ts:170
Inherited from
senderNickname?
optionalsenderNickname?:string
Defined in: src/types/chat.ts:29
Overrides
MessageDocument.senderNickname
senderPhotoURL?
optionalsenderPhotoURL?:string|null
Defined in: src/types/chat.ts:30
Overrides
MessageDocument.senderPhotoURL
text
text:
string
Defined in: types/firestore.ts:169
Inherited from
translations?
optionaltranslations?:Record<string,string>
Defined in: types/firestore.ts:200