This commit is contained in:
yuzuki999
2022-06-09 21:40:23 +08:00
parent 0da1dd9b5c
commit da5f94247d

View File

@@ -342,8 +342,9 @@ func compareUserList(old, new *[]api.UserInfo) (deleted, added []int) {
} }
l := len(tmp) l := len(tmp)
for i := range *new { for i := range *new {
tmp[(*old)[i].GetUserEmail()] = struct{}{} e := (*new)[i].GetUserEmail()
tmp2[(*new)[i].GetUserEmail()] = struct{}{} tmp[e] = struct{}{}
tmp2[e] = struct{}{}
if l != len(tmp) { if l != len(tmp) {
added = append(added, i) added = append(added, i)
l++ l++