Allow clients to fetch notifications made while they were offline (#6886)
This commit is contained in:
parent
9a1a55ce52
commit
cbf97c03bb
5 changed files with 82 additions and 114 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue