Add notification on mention.
This commit is contained in:
parent
51988e75b6
commit
e1c5030311
2 changed files with 24 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue