From e1c50303112713c83e15c9d71cf6a5af737458e3 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Sun, 27 Nov 2016 19:11:05 +0100 Subject: Add notification on mention. --- src/modules/statuses.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/modules') 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. -- cgit v1.2.3-70-g09d2