mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-08 13:27:15 +00:00
applied comments and fix bug when tagging msgs already tagged
This commit is contained in:
1 parent
3b65eaea0b
commit
32476b16cc
2 files changed
+10
-12
No files matched your search
@@ -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