diff options
Diffstat (limited to 'src/plugins/searchReply')
-rw-r--r-- | src/plugins/searchReply/index.tsx | 2 |
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); |