From 139dd7a92e18543ba09df8e77ec55032834e99f9 Mon Sep 17 00:00:00 2001 From: obscurity Date: Wed, 19 Oct 2022 09:36:40 +0200 Subject: fix(interactionKeybinds): disable ping when replying to own message (#118) --- src/plugins/interactionKeybinds.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 }); } -- cgit