about summary refs log tree commit diff
path: root/app/javascript/mastodon/actions/streaming.js
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>2018-03-25 06:07:23 +0900
committerEugen Rochko <eugen@zeonfederated.com>2018-03-24 22:07:23 +0100
commitcbf97c03bba35a642e6f1d1a698aad7a69ad13a3 (patch)
tree9e8795ef68c0f0fee5909fcec84f218d0b205a94 /app/javascript/mastodon/actions/streaming.js
parent9a1a55ce526c956ac6b35897d483c316b7ad4394 (diff)
Allow clients to fetch notifications made while they were offline (#6886)
Diffstat (limited to 'app/javascript/mastodon/actions/streaming.js')
-rw-r--r--app/javascript/mastodon/actions/streaming.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/mastodon/actions/streaming.js b/app/javascript/mastodon/actions/streaming.js
index 3ac6b8a09..f76510cdb 100644
--- a/app/javascript/mastodon/actions/streaming.js
+++ b/app/javascript/mastodon/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 '../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);