# EditMessageHandler

public class EditMessageHandler

EditMessageHandler

处理消息编辑相关的数据请求

#### Since

5.26.0

## Constructors

EditMessageHandler
Link copied to clipboard
public void EditMessageHandler()

## Properties

KEY_INPUT_PANEL_GET_DRAFT
Link copied to clipboard
public final static DataKey<EditMessageConfig> KEY_INPUT_PANEL_GET_DRAFT
KEY_ON_MESSAGE_MODIFIED
Link copied to clipboard
public final static DataKey<List<Message>> KEY_ON_MESSAGE_MODIFIED
KEY_ON_MESSAGE_REFRESH
Link copied to clipboard
public final static DataKey<Message> KEY_ON_MESSAGE_REFRESH

## Functions

checkEditedMessageDraftStatus
Link copied to clipboard
public void checkEditedMessageDraftStatus(ConversationIdentifier id)
检查消息编辑草稿状态 用与 InputPanel 初始化后先获取编辑草稿，来决定是否获取普通草稿。
clearEditedMessageDraft
Link copied to clipboard
public void clearEditedMessageDraft(ConversationIdentifier id)
清理草稿
processMessageEditStatusAndReferMsgStatus
Link copied to clipboard
public List<UiMessage> processMessageEditStatusAndReferMsgStatus(List<Message> editMessageList, List<UiMessage> uiMessageList)
处理消息的编辑状态和引用了此消息的引用消息状态
processMessageReferMsgStatus
Link copied to clipboard
public List<UiMessage> processMessageReferMsgStatus(Message message, ReferenceMessageStatus status, List<UiMessage> uiMessageList)
public List<UiMessage> processMessageReferMsgStatus(Array<Message> messages, ReferenceMessageStatus status, List<UiMessage> uiMessageList)
处理引用了此消息的引用消息状态
refreshReferenceMessage
Link copied to clipboard
public void refreshReferenceMessage(String editMsgUid, ConversationIdentifier identifier)
刷新引用消息状态
resumeEditMode
Link copied to clipboard
public void resumeEditMode(ConversationIdentifier id, ActiveType type)
恢复编辑消息输入UI。
saveEditedMessageDraft
Link copied to clipboard
public void saveEditedMessageDraft(ConversationIdentifier id, EditMessageConfig config)
保存编辑消息状态
stop
Link copied to clipboard
public void stop()
updateReferenceView
Link copied to clipboard
public void updateReferenceView(List<Message> messages, List<UiMessage> uiMessageList)
收到编辑消息事件后，更新引用消息UI