增加加密群消息引用、编辑和撤回
This commit is contained in:
1 parent
de722039d6
commit
7beb0cf795
7 files changed
+177
-36
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user