diff options
| author | Roger Braun <roger@rogerbraun.net> | 2016-11-27 18:54:51 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2016-11-27 18:57:33 +0100 |
| commit | 51988e75b6462bffc655fd5638325e0465201cbc (patch) | |
| tree | 954c0d26b89c6ee4acc3ea53b1a54ef9189f1e09 /src/modules/statuses.js | |
| parent | ff93d1edeefae88cc1b9e9efe4f22c8787e5f792 (diff) | |
Add repeat notifications.
Diffstat (limited to 'src/modules/statuses.js')
| -rw-r--r-- | src/modules/statuses.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/statuses.js b/src/modules/statuses.js index cee249e2..43d5d1ac 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -121,6 +121,10 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us if (result.new) { updateMaxId(status) + + if (statusType(status) === 'retweet' && status.retweeted_status.user.id === user.id) { + addNotification({ type: 'repeat', status: status.retweeted_status, action: status }) + } } // Some statuses should only be added to the global status repository. @@ -201,6 +205,7 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us } }, 'default': (unknown) => { + console.log('unknown status type') console.log(unknown) } } |
