aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/quickReply
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/quickReply
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/quickReply')
-rw-r--r--src/plugins/quickReply/index.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/quickReply/index.ts b/src/plugins/quickReply/index.ts
index 7a39ec0..118a51b 100644
--- a/src/plugins/quickReply/index.ts
+++ b/src/plugins/quickReply/index.ts
@@ -172,7 +172,8 @@ function shouldMention(message) {
// handle next/prev reply
function nextReply(isUp: boolean) {
- if (!PermissionStore.can(PermissionsBits.SEND_MESSAGES, ChannelStore.getChannel(SelectedChannelStore.getChannelId()))) return;
+ const currChannel = ChannelStore.getChannel(SelectedChannelStore.getChannelId());
+ if (currChannel.guild_id && !PermissionStore.can(PermissionsBits.SEND_MESSAGES, currChannel)) return;
const message = getNextMessage(isUp, true);
if (!message)
@@ -196,7 +197,8 @@ function nextReply(isUp: boolean) {
// handle next/prev edit
function nextEdit(isUp: boolean) {
- if (!PermissionStore.can(PermissionsBits.SEND_MESSAGES, ChannelStore.getChannel(SelectedChannelStore.getChannelId()))) return;
+ const currChannel = ChannelStore.getChannel(SelectedChannelStore.getChannelId());
+ if (currChannel.guild_id && !PermissionStore.can(PermissionsBits.SEND_MESSAGES, currChannel)) return;
const message = getNextMessage(isUp, false);
if (!message)