mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-18 01:45:25 +00:00
bugfix; UserSettings was not refresh properly after toggling threads
This commit is contained in:
@@ -259,18 +259,8 @@ function mailListToggleMessageThread(row, cell) {
|
||||
|
||||
function mailListToggleMessageCollapseCallback(http) {
|
||||
var data = http.callbackData;
|
||||
if (isHttpStatus204(http.status)) {
|
||||
if (data.action == "markMessageCollapse") {
|
||||
if (cachedThreadsCollapsed[data.currentMailbox])
|
||||
cachedThreadsCollapsed[data.currentMailbox].push(data.msguid);
|
||||
else
|
||||
cachedThreadsCollapsed[data.currentMailbox] = [data.msguid];
|
||||
}
|
||||
else {
|
||||
var index = cachedThreadsCollapsed[data.currentMailbox].indexOf(data.msguid);
|
||||
cachedThreadsCollapsed[data.currentMailbox].splice(index, 1);
|
||||
}
|
||||
}
|
||||
if (isHttpStatus204(http.status))
|
||||
triggerAjaxRequest(UserFolderURL + "/preferences/jsonSettings", refreshUserSettingsCallback);
|
||||
else {
|
||||
log("Message Collapse Failed (" + http.status + "): " + http.statusText);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user