mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-18 02:47:03 -04:00
Fixes
This commit is contained in:
parent
547af260a5
commit
b5c571823f
2 changed files with 7 additions and 5 deletions
|
@ -63,7 +63,7 @@ export default definePlugin({
|
|||
|
||||
if (!msg.attachments.length && !msg.embeds.length && !msg.stickerItems.length && !hasAttachmentsInShapshots) return null;
|
||||
|
||||
const isHidden = hiddenMessages.has(msg.id);
|
||||
const isHidden = hiddenMessages?.has(msg.id) ?? false;
|
||||
|
||||
return {
|
||||
label: isHidden ? "Show Media" : "Hide Media",
|
||||
|
@ -93,7 +93,7 @@ export default definePlugin({
|
|||
},
|
||||
|
||||
shouldHide(messageId: string) {
|
||||
return hiddenMessages.has(messageId);
|
||||
return hiddenMessages?.has(messageId) ?? false;
|
||||
},
|
||||
|
||||
async toggleHide(channelId: string, messageId: string) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue