Initial commit
This commit is contained in:
@@ -43,6 +43,21 @@ const messageSchema = new Schema({
|
||||
readStatus: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
/** Auto-delete after this time (self-destruct messages) */
|
||||
expiresAt: {
|
||||
type: Date,
|
||||
required: false,
|
||||
index: true
|
||||
},
|
||||
/** View-once photo / video / voice */
|
||||
viewOnce: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
viewOnceOpenedAt: {
|
||||
type: Date,
|
||||
required: false
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user