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

This commit is contained in:
obscurity 2022-10-19 09:36:40 +02:00 committed by GitHub
parent b66903cf52
commit 139dd7a92e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
});
}