gaoluyang
2026-06-24 712aa51536236d43e87273e4ce45ac5691dffad8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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')