Skip to content

Commit 6c788ce

Browse files
committed
fix(search): apply layout-message-view when loading the next messages
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
1 parent 6e7b529 commit 6c788ce

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/store/mainStore/actions.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,15 @@ export default function mainStoreActions() {
804804
return Promise.reject(new Error('Cannot find last envelope. Required for the mailbox cursor'))
805805
}
806806

807-
return fetchEnvelopes(mailbox.accountId, mailboxId, query, lastEnvelope.dateInt, quantity, this.getPreference('sort-order')).then((envelopes) => {
807+
return fetchEnvelopes(
808+
mailbox.accountId,
809+
mailboxId,
810+
query,
811+
lastEnvelope.dateInt,
812+
quantity,
813+
this.getPreference('sort-order'),
814+
this.getPreference('layout-message-view')
815+
).then((envelopes) => {
808816
logger.debug(`fetched ${envelopes.length} messages for mailbox ${mailboxId}`, {
809817
envelopes,
810818
addToUnifiedMailboxes,

0 commit comments

Comments
 (0)