Skip to content

Commit

Permalink
dont ping when replying to yourself
Browse files Browse the repository at this point in the history
  • Loading branch information
amyulating authored and yellowsink committed May 10, 2024
1 parent 75f5407 commit f46b60b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions plugins/quickreply/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const {
plugin: { store },
flux: {
dispatcher,
stores: { ChannelStore, SelectedChannelStore, MessageStore },
stores: { UserStore, ChannelStore, SelectedChannelStore, MessageStore },
},
} = shelter;

Expand Down Expand Up @@ -48,7 +48,10 @@ function createPendingReply(
type: "CREATE_PENDING_REPLY",
channel,
message,
shouldMention: shouldMention && !store.noPing,
shouldMention:
shouldMention &&
!store.noPing &&
message.author.id !== UserStore.getCurrentUser().id,
showMentionToggle,
});

Expand Down

0 comments on commit f46b60b

Please sign in to comment.