Skip to content
Extraits de code Groupes Projets
Valider 5648b30d rédigé par ThibG's avatar ThibG Validation de Eugen Rochko
Parcourir les fichiers

Fix last_status parameter for notifications and conversations (#9407)

parent 6a285f0a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -38,7 +38,7 @@ export const expandConversations = ({ maxId } = {}) => (dispatch, getState) => { ...@@ -38,7 +38,7 @@ export const expandConversations = ({ maxId } = {}) => (dispatch, getState) => {
const params = { max_id: maxId }; const params = { max_id: maxId };
if (!maxId) { if (!maxId) {
params.since_id = getState().getIn(['conversations', 0, 'last_status']); params.since_id = getState().getIn(['conversations', 'items', 0, 'last_status']);
} }
api(getState).get('/api/v1/conversations', { params }) api(getState).get('/api/v1/conversations', { params })
......
...@@ -106,7 +106,7 @@ export function expandNotifications({ maxId } = {}, done = noOp) { ...@@ -106,7 +106,7 @@ export function expandNotifications({ maxId } = {}, done = noOp) {
}; };
if (!maxId && notifications.get('items').size > 0) { if (!maxId && notifications.get('items').size > 0) {
params.since_id = notifications.getIn(['items', 0]); params.since_id = notifications.getIn(['items', 0, 'id']);
} }
dispatch(expandNotificationsRequest(isLoadingMore)); dispatch(expandNotificationsRequest(isLoadingMore));
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter