diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-05-27 19:30:52 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-05-29 21:25:28 +0200 |
commit | 4eba8c50c31d70f466a68d48445f86d644e4a889 (patch) | |
tree | e9f7f44ef62c4f0c1f8d4de38ca43f4337e8f6ca /app/javascript/flavours/glitch/actions/streaming.js | |
parent | 0ad3eedd4cf6d1d7f7ceacc2c4412dbd8ee79cef (diff) |
[Glitch] Allow clients to fetch notifications made while they were offline
Port cbf97c03bba35a642e6f1d1a698aad7a69ad13a3 to glitch-soc
Diffstat (limited to 'app/javascript/flavours/glitch/actions/streaming.js')
-rw-r--r-- | app/javascript/flavours/glitch/actions/streaming.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/flavours/glitch/actions/streaming.js b/app/javascript/flavours/glitch/actions/streaming.js index 8d623af75..ac69c8b43 100644 --- a/app/javascript/flavours/glitch/actions/streaming.js +++ b/app/javascript/flavours/glitch/actions/streaming.js @@ -5,7 +5,7 @@ import { expandHomeTimeline, disconnectTimeline, } from './timelines'; -import { updateNotifications, refreshNotifications } from './notifications'; +import { updateNotifications, expandNotifications } from './notifications'; import { getLocale } from 'mastodon/locales'; const { messages } = getLocale(); @@ -38,7 +38,7 @@ export function connectTimelineStream (timelineId, path, pollingRefresh = null) function refreshHomeTimelineAndNotification (dispatch) { dispatch(expandHomeTimeline()); - dispatch(refreshNotifications()); + dispatch(expandNotifications()); } export const connectUserStream = () => connectTimelineStream('home', 'user', refreshHomeTimelineAndNotification); |