Merge pull request #9981 from rainzm/notify/webconsole_lang

fix(notify): send websocket messages according to language preference
This commit is contained in:
Zexi Li
2021-01-21 21:32:55 +08:00
committed by GitHub
2 changed files with 4 additions and 11 deletions
+1 -6
View File
@@ -537,14 +537,9 @@ func notifyWithChannel(ctx context.Context, p sNotifyParams, channels ...npk.TNo
p.recipientId = []string{}
p.contacts = []string{}
p.channel = c
if c == npk.NotifyByWebConsole {
p.contacts = reps
} else {
p.recipientId = reps
}
p.recipientId = reps
rawNotify(ctx, p)
}
}
func NotifyImportant(recipientId []string, isGroup bool, event string, data jsonutils.JSONObject) {