import { NIMClientType } from './LoginPort';
import { NIMChatroomInfo } from './ChatroomInfo';
import { NIMMessage } from './Message';

export interface NIMChatroomMessage extends Pick<
  NIMMessage,
  'idClient' | 'from' | 'fromNick'
  | 'fromClientType' | 'type' | 'flow'
  | 'text' | 'file' | 'geo' | 'tip' | 'content'
  | 'attach' | 'custom' | 'resend' | 'time'
  > {
  /** chatroomId */
  chatroomId: NIMChatroomInfo['id'];
  /** 消息发送方的头像 */
  fromAvatar: string;
  /** 消息发送方的扩展字段 */
  fromCustom: string;
  /** 是否跳过存云端历史, false:不跳过,true:跳过存历史,默认false */
  skipHistory: boolean;
}
