fix(interactionKeybinds): disable ping when replying to own message (#118)

main
obscurity 2 years ago committed by GitHub
parent b66903cf52
commit 139dd7a92e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -103,12 +103,13 @@ function nextReply(isUp: boolean) {
}); });
const channel = ChannelStore.getChannel(message.channel_id); const channel = ChannelStore.getChannel(message.channel_id);
const meId = UserStore.getCurrentUser().id;
Dispatcher.dispatch({ Dispatcher.dispatch({
type: "CREATE_PENDING_REPLY", type: "CREATE_PENDING_REPLY",
channel, channel,
message, message,
shouldMention: true, shouldMention: true,
showMentionToggle: channel.guild_id !== null, showMentionToggle: channel.guild_id !== null && message.author.id !== meId,
_isQuickReply: true _isQuickReply: true
}); });
} }

Loading…
Cancel
Save