0
0
Fork 0

Allow clients to fetch notifications made while they were offline (#6886)

This commit is contained in:
Akihiko Odaki 2018-03-25 06:07:23 +09:00 committed by Eugen Rochko
parent 9a1a55ce52
commit cbf97c03bb
5 changed files with 82 additions and 114 deletions

View file

@ -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);