createTyping method

Future<MsgModel> createTyping({
  1. required String convId,
  2. required TypingContent content,
  3. MsgOptionsModel? options,
  4. MsgOfflinePushModel? offlinePush,
  5. String ext = "",
})

创建正在输入

Implementation

Future<MsgModel> createTyping({
  required String convId,
  required TypingContent content,
  MsgOptionsModel? options,
  MsgOfflinePushModel? offlinePush,
  String ext = "",
}) {
  return _sdkManager.createMsg(
    convId: convId,
    atUsers: [],
    contentType: MsgContentType.typing,
    content: content.toJson(),
    options: options ??
        MsgOptionsModel(
          storageForServer: false,
          storageForClient: false,
          needDecrypt: false,
          offlinePush: false,
          updateConvMsg: false,
          updateUnreadCount: false,
        ),
    offlinePush: offlinePush ??
        MsgOfflinePushModel(
          title: "",
          content: "",
          payload: "",
        ),
    ext: ext,
  );
}