提交 c407faac 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

use MsgType

上级 7198b120
......@@ -117,7 +117,7 @@ export type MsgRawObj = {
export type MsgObj = {
id: string
type: number
type: MsgType
from: string
to?: string // if to is not set, then room must be set
room?: string
......@@ -372,7 +372,7 @@ export class Message implements Sayable {
}
public type(): MsgType {
return this.obj.type as MsgType
return this.obj.type
}
public typeSub(): MsgType {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册