Skip to content

Commit

Permalink
Fetch only one message after anchor. Improve positioning (#1265)
Browse files Browse the repository at this point in the history
Fetch only one message after anchor. Improve positioning
  • Loading branch information
borisyankov committed Oct 6, 2017
1 parent b23628a commit 6dbb587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/message/fetchActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const fetchMessages = (
};

export const fetchMessagesAtFirstUnread = (narrow: Narrow): Action =>
fetchMessages(0, config.messagesPerRequest / 2, config.messagesPerRequest / 2, narrow, true);
fetchMessages(0, config.messagesPerRequest, 0, narrow, true);

export const markMessagesRead = (messageIds: number[]): Action => ({
type: MARK_MESSAGES_READ,
Expand Down

0 comments on commit 6dbb587

Please sign in to comment.