diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/hideAttachments.tsx | 8 | ||||
-rw-r--r-- | src/plugins/messageLinkEmbeds.tsx | 2 |
2 files changed, 3 insertions, 7 deletions
diff --git a/src/plugins/hideAttachments.tsx b/src/plugins/hideAttachments.tsx index 944da65..83a924e 100644 --- a/src/plugins/hideAttachments.tsx +++ b/src/plugins/hideAttachments.tsx @@ -20,7 +20,7 @@ import { get, set } from "@api/DataStore"; import { addButton, removeButton } from "@api/MessagePopover"; import { Devs } from "@utils/constants"; import definePlugin from "@utils/types"; -import { ChannelStore, FluxDispatcher } from "@webpack/common"; +import { ChannelStore } from "@webpack/common"; let style: HTMLStyleElement; @@ -101,11 +101,5 @@ export default definePlugin({ await saveHiddenMessages(ids); await this.buildCss(); - - // update is necessary to rerender the PopOver - FluxDispatcher.dispatch({ - type: "MESSAGE_UPDATE", - message: { id } - }); } }); diff --git a/src/plugins/messageLinkEmbeds.tsx b/src/plugins/messageLinkEmbeds.tsx index d1fcbf3..5fae234 100644 --- a/src/plugins/messageLinkEmbeds.tsx +++ b/src/plugins/messageLinkEmbeds.tsx @@ -225,6 +225,8 @@ function MessageEmbedAccessory({ message }: { message: Message; }) { } else { const msg = { ...message } as any; delete msg.embeds; + delete msg.interaction; + messageFetchQueue.push(() => fetchMessage(channelID, messageID) .then(m => m && FluxDispatcher.dispatch({ type: "MESSAGE_UPDATE", |