Add follow notifications.
This commit is contained in:
parent
9c5f001fd2
commit
701112f043
3 changed files with 20 additions and 0 deletions
|
@ -105,6 +105,10 @@ export const statusType = (status) => {
|
|||
return 'deletion'
|
||||
}
|
||||
|
||||
if (status.text.match(/started following/)) {
|
||||
return 'follow'
|
||||
}
|
||||
|
||||
return 'unknown'
|
||||
}
|
||||
|
||||
|
@ -253,6 +257,9 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us
|
|||
favoriteStatus(favorite)
|
||||
}
|
||||
},
|
||||
'follow': (status) => {
|
||||
addNotification({ type: 'follow', status: status, action: status })
|
||||
},
|
||||
'deletion': (deletion) => {
|
||||
const uri = deletion.uri
|
||||
updateMaxId(deletion)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue