mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-26 05:45:24 +00:00
applied comments and fix bug when tagging msgs already tagged
This commit is contained in:
@@ -2550,8 +2550,10 @@ function messageFlagCallback(http) {
|
||||
var flags = [];
|
||||
if (labels.length > 0)
|
||||
flags = labels.split(" ");
|
||||
if (operation == "add")
|
||||
flags.push(data["flag"]);
|
||||
if (operation == "add") {
|
||||
if (flags.indexOf(data["flag"]) == -1)
|
||||
flags.push(data["flag"]);
|
||||
}
|
||||
else {
|
||||
// Remove flag
|
||||
var flag = data["flag"];
|
||||
|
||||
Reference in New Issue
Block a user