Fix Message Accessories API (#441)

This commit is contained in:
Nuckyz 2023-01-20 21:47:24 -03:00 committed by GitHub
parent 2641adb29b
commit 6e44b8c47e
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@ export default definePlugin({
authors: [Devs.Cyn],
patches: [
{
find: "_messageAttachmentToEmbedMedia",
find: ".Messages.REMOVE_ATTACHMENT_BODY",
replacement: {
match: /(.container\)?,children:)(\[[^\]]+\])(}\)\};return)/,
replace: (_, pre, accessories, post) =>