Allow clients to fetch notifications made while they were offline (#6886)
This commit is contained in:
		
				
					committed by
					
						
						Eugen Rochko
					
				
			
			
				
	
			
			
			
						parent
						
							9a1a55ce52
						
					
				
				
					commit
					cbf97c03bb
				
			@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user