aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorobscurity <z@x4.pm>2022-10-19 09:36:40 +0200
committerGitHub <noreply@github.com>2022-10-19 09:36:40 +0200
commit139dd7a92e18543ba09df8e77ec55032834e99f9 (patch)
tree465dbf77f29b05701584dcdf2e9d36fa6e67012f /src/plugins
parentb66903cf52fb8e2aaa5318bae5cf1a556d141f33 (diff)
downloadVencord-139dd7a92e18543ba09df8e77ec55032834e99f9.tar.gz
Vencord-139dd7a92e18543ba09df8e77ec55032834e99f9.tar.bz2
Vencord-139dd7a92e18543ba09df8e77ec55032834e99f9.zip
fix(interactionKeybinds): disable ping when replying to own message (#118)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/interactionKeybinds.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/interactionKeybinds.ts b/src/plugins/interactionKeybinds.ts
index 3f6c7b4..f313b2c 100644
--- a/src/plugins/interactionKeybinds.ts
+++ b/src/plugins/interactionKeybinds.ts
@@ -103,12 +103,13 @@ function nextReply(isUp: boolean) {
});
const channel = ChannelStore.getChannel(message.channel_id);
+ const meId = UserStore.getCurrentUser().id;
Dispatcher.dispatch({
type: "CREATE_PENDING_REPLY",
channel,
message,
shouldMention: true,
- showMentionToggle: channel.guild_id !== null,
+ showMentionToggle: channel.guild_id !== null && message.author.id !== meId,
_isQuickReply: true
});
}