fix(interactionKeybinds): disable ping when replying to own message (#118)
This commit is contained in:
parent
b66903cf52
commit
139dd7a92e
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue