ソースを参照

add more type

Paul 4 年 前
コミット
e80601c548
共有2 個のファイルを変更した2 個の追加2 個の削除を含む
  1. 1
    1
      packages/cts-api/src/protocol/MediaMsg.ts
  2. 1
    1
      packages/cts-api/src/protocol/MsgBase.ts

+ 1
- 1
packages/cts-api/src/protocol/MediaMsg.ts ファイルの表示

@@ -1,7 +1,7 @@
1 1
 import { MsgBase, MsgType } from './MsgBase';
2 2
 
3 3
 export class MediaMsg extends MsgBase {
4
-  type: MsgType = 'media';
4
+  msgType: MsgType = 'audio';
5 5
 
6 6
   // 消息内容
7 7
   file: { data: Blob | null; url: string };

+ 1
- 1
packages/cts-api/src/protocol/MsgBase.ts ファイルの表示

@@ -1,6 +1,6 @@
1 1
 import { uuid } from '../utils/uuid';
2 2
 
3
-export type MsgType = 'text' | 'media' | 'cmd' | 'attachment';
3
+export type MsgType = 'text' | 'audio' | 'video' | 'cmd' | 'attachment';
4 4
 
5 5
 export type ChatType = 'chat' | 'room' | 'group' | 'push';
6 6