feat: 上报消息时间戳
This commit is contained in:
@@ -86,6 +86,7 @@ export default class ChatApi extends BaseApi {
|
|||||||
|
|
||||||
const msg = {
|
const msg = {
|
||||||
text: args.text as string,
|
text: args.text as string,
|
||||||
|
time: Date.now(),
|
||||||
user_id: token.author,
|
user_id: token.author,
|
||||||
}
|
}
|
||||||
const id = MessagesManager.getInstanceForChat(chat).addMessage(msg)
|
const id = MessagesManager.getInstanceForChat(chat).addMessage(msg)
|
||||||
|
|||||||
Reference in New Issue
Block a user