From 608a67c9ae4eea61bc532398ed615a4984db2ffc Mon Sep 17 00:00:00 2001 From: V Date: Tue, 26 Sep 2023 03:54:59 +0200 Subject: fix quick/searchReply & MessageClickactions not working in dms --- src/plugins/searchReply/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/searchReply') 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); -- cgit