Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Commit

Permalink
Disable desktop notification for self reply
Browse files Browse the repository at this point in the history
  • Loading branch information
Takashi Kokubun committed Mar 23, 2016
1 parent 5000a4d commit c9877e5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/utils/timeline-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ export default class TimelineProxy {
}

notifyMention(tweet) {
new Notification(
`@${tweet.user.screen_name} - Reply from ${tweet.user.name}`,
{ body: tweet.text },
);
if (this.account.id_str !== tweet.user.id_str) {
new Notification(
`@${tweet.user.screen_name} - Reply from ${tweet.user.name}`,
{ body: tweet.text },
);
}
}
}

0 comments on commit c9877e5

Please sign in to comment.