From c407faace7d2c8b20c3907d04a80611fd19efb9c Mon Sep 17 00:00:00 2001 From: "Zhuohuan LI (CARPE DIEM)" Date: Sun, 13 Nov 2016 16:40:49 +0800 Subject: [PATCH] use MsgType --- src/message.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/message.ts b/src/message.ts index 59be08f6..e868d393 100644 --- a/src/message.ts +++ b/src/message.ts @@ -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 { -- GitLab