aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/searchReply
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-09-26 03:54:59 +0200
committerV <vendicated@riseup.net>2023-09-26 03:54:59 +0200
commit608a67c9ae4eea61bc532398ed615a4984db2ffc (patch)
tree354a78f368c735bf845a495bf68dfac34d0481eb /src/plugins/searchReply
parentf32d25b641dc89b623ec0930396827bfcf4921b2 (diff)
downloadVencord-608a67c9ae4eea61bc532398ed615a4984db2ffc.tar.gz
Vencord-608a67c9ae4eea61bc532398ed615a4984db2ffc.tar.bz2
Vencord-608a67c9ae4eea61bc532398ed615a4984db2ffc.zip
fix quick/searchReply & MessageClickactions not working in dms
Diffstat (limited to 'src/plugins/searchReply')
-rw-r--r--src/plugins/searchReply/index.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/searchReply/index.tsx b/src/plugins/searchReply/index.tsx
index 98f26e0..b28ca8e 100644
--- a/src/plugins/searchReply/index.tsx
+++ b/src/plugins/searchReply/index.tsx
@@ -32,7 +32,7 @@ const messageContextMenuPatch: NavContextMenuPatchCallback = (children, { messag
if (SelectedChannelStore.getChannelId() !== message.channel_id) return;
const channel = ChannelStore.getChannel(message?.channel_id);
if (!channel) return;
- if (!PermissionStore.can(PermissionsBits.SEND_MESSAGES, channel)) return;
+ if (channel.guild_id && !PermissionStore.can(PermissionsBits.SEND_MESSAGES, channel)) return;
// dms and group chats
const dmGroup = findGroupChildrenByChildId("pin", children);