diff options
| author | Roger Braun <roger@rogerbraun.net> | 2016-11-27 19:11:05 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2016-11-27 19:11:05 +0100 |
| commit | e1c50303112713c83e15c9d71cf6a5af737458e3 (patch) | |
| tree | 4c583edfd26ffa4765c94379be878807609487f3 /src | |
| parent | 51988e75b6462bffc655fd5638325e0465201cbc (diff) | |
Add notification on mention.
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules/statuses.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/statuses.js b/src/modules/statuses.js index 43d5d1ac..569569f8 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -125,6 +125,10 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us if (statusType(status) === 'retweet' && status.retweeted_status.user.id === user.id) { addNotification({ type: 'repeat', status: status.retweeted_status, action: status }) } + + if (statusType(status) === 'status' && find(status.attentions, { id: user.id })) { + addNotification({ type: 'mention', status, action: status }) + } } // Some statuses should only be added to the global status repository. |
