Commit 180c3223 authored by richard.petersen's avatar richard.petersen
Browse files

Fixup for OXUIB-616 - UI refresh asks too much from the server

Root cause: Mapping original_folder_id and original_id to common attributes was not detected for the dedicated unseen folder
Solution: Fix unseen folder detection

(cherry picked from commit 940e7fd3)
parent 9195d1a3
Pipeline #144317 failed with stages
in 25 minutes and 3 seconds
......@@ -1772,7 +1772,7 @@ define('io.ox/mail/api', [
// apply static limit for all-unseen
var isAllFolder = api.allMessagesFolder && params.folder === api.allMessagesFolder,
isUnseenfolder = api.allUnseenMessagesFolder && params.folder === api.allUnseenMessagesFolder,
isAllUnseen = (isUnseenfolder || isAllFolder) && params.unseen === true;
isAllUnseen = (isAllFolder && params.unseen === true) || isUnseenfolder;
if (isAllUnseen) params.limit = '0,250';
return http.GET({ module: module, params: params }).then(function (data) {
// drop all seen messages for all-unseen
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment