增加加密群消息引用、编辑和撤回

This commit is contained in:
xhgit committed 2026-11-14 09:25:45 +08:00
1 parent de722039d6
commit 7beb0cf795
7 files changed
+177 -36

No files matched your search

+1 -1
View File
@@ -170,7 +170,7 @@ async function flush(state: ChatState, save: (state: ChatState) => Promise<void>
return unavailable
}
function applyMutation(line: ChatLine, mutation: Mutation) {
export function applyMutation(line: Pick<ChatLine, 'text' | 'attachment' | 'quote' | 'recalled' | 'edited'>, mutation: Mutation) {
if (line.recalled) return
if (mutation.action === 'recall') {
line.recalled = true