import { MessageType } from "openim-uniapp-polyfill";

export const CustomType = {
  VideoCall: "c100",
  VoiceCall: "c101",
  Call: 901,
  MassMsg: 903,
  Moments: 904,
  MeetingInvitation: 905,
};

export const SendMessageFailedType = {
  Unknown: 302,
  Blacked: 1302,
  NotFriend: 1303,
};

export const Platform = {
  1: 'iOS',
  2: 'Android',
  3: 'PC',
  4: 'PC',
  5: 'Web'
};

export const noticeMessageTypes = [
  MessageType.RevokeMessage,
  MessageType.FriendAdded,
  MessageType.GroupCreated,
  MessageType.GroupInfoUpdated,
  MessageType.MemberQuit,
  MessageType.GroupOwnerTransferred,
  MessageType.MemberKicked,
  MessageType.MemberInvited,
  MessageType.MemberEnter,
  MessageType.GroupDismissed,
  MessageType.GroupMemberMuted,
  MessageType.GroupMuted,
  MessageType.GroupCancelMuted,
  MessageType.GroupMemberCancelMuted,
  MessageType.GroupNameUpdated,
  MessageType.BurnMessageChange,
];

export const GroupSystemMessageTypes = [
  MessageType.GroupCreated,
  MessageType.GroupInfoUpdated,
  MessageType.MemberQuit,
  MessageType.GroupOwnerTransferred,
  MessageType.MemberKicked,
  MessageType.MemberInvited,
  MessageType.MemberEnter,
  MessageType.GroupDismissed,
  MessageType.GroupMemberMuted,
  MessageType.GroupMuted,
  MessageType.GroupCancelMuted,
  MessageType.GroupMemberCancelMuted,
  MessageType.GroupNameUpdated
];


export const FileMessageTypes = [
  MessageType.FileMessage,
  MessageType.PictureMessage,
  MessageType.VideoMessage,
  MessageType.VoiceMessage
]