| ¶Ô±ÈÐÂÎļþ |
| | |
| | | import type { InjectionKey } from 'vue' |
| | | |
| | | import type { Conversation, Message } from '#/views/im/home/types' |
| | | import type { ImForwardModeValue } from '#/views/im/utils/constants' |
| | | |
| | | /** æå¼è½¬åå¼¹çª */ |
| | | export type OpenForwardDialog = (opts: { |
| | | messages: Message[] |
| | | mode: ImForwardModeValue |
| | | sourceConversation: Conversation |
| | | }) => void |
| | | |
| | | /** æå¼åå¹¶æ¶æ¯è¯¦æ
å¼¹çª */ |
| | | export type OpenMergeDetailDialog = (content: string) => void |
| | | |
| | | /** 鿍 RTC éè¯ï¼ç¹ç§è RTC_CALL_END æ°æ³¡è§¦å */ |
| | | export type RtcRedial = (mediaType: number) => void |
| | | |
| | | /** MessagePanel éè¿ provide æ´é²ç»åæ */ |
| | | export const IM_FORWARD_DIALOG_KEY: InjectionKey<OpenForwardDialog> = Symbol('IM_FORWARD_DIALOG') |
| | | export const IM_MERGE_DETAIL_DIALOG_KEY: InjectionKey<OpenMergeDetailDialog> = Symbol( |
| | | 'IM_MERGE_DETAIL_DIALOG' |
| | | ) |
| | | export const IM_RTC_REDIAL_KEY: InjectionKey<RtcRedial> = Symbol('IM_RTC_REDIAL') |