mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-11 23:07:12 +00:00
bugfix; UserSettings was not refresh properly after toggling threads
This commit is contained in:
1 parent
1dcf631ad6
commit
3c1d6d7d89
1 file changed
+2
-12
@@ -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