Add repeat notifications.

This commit is contained in:
Roger Braun 2016-11-27 18:54:51 +01:00
parent ff93d1edee
commit 51988e75b6
2 changed files with 21 additions and 0 deletions

View file

@ -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)
}
}