mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-17 18:37:04 -04:00
QuickReply & Up Key: Do not attempt to edit/reply to logged deleted message
This commit is contained in:
parent
8378638ee4
commit
8c47b7080d
2 changed files with 15 additions and 3 deletions
|
@ -209,6 +209,11 @@ export default definePlugin({
|
|||
" m" +
|
||||
")" +
|
||||
".update($3"
|
||||
},
|
||||
{
|
||||
// fix up key (edit last message) attempting to edit a deleted message
|
||||
match: /(?<=getLastEditableMessage=.{0,200}\.find\(\(function\((\i)\)\{)return/,
|
||||
replace: "return !$1.deleted &&"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue