remove super group add kicked user notification

This commit is contained in:
Gordon
2023-02-08 10:21:59 +08:00
parent cc4ae8648e
commit 6ee90b60c3
4 changed files with 7 additions and 19 deletions
-11
View File
@@ -19,7 +19,6 @@ import (
pbRtc "Open_IM/pkg/proto/rtc"
"Open_IM/pkg/utils"
"context"
"encoding/json"
"strings"
promePkg "Open_IM/pkg/common/prometheus"
@@ -180,16 +179,6 @@ func MsgToSuperGroupUser(pushMsg *pbPush.PushMsgReq) {
}
pushToUserIDList = userIDList
}
if pushMsg.MsgData.ContentType == constant.SuperGroupUpdateNotification {
m := make(map[string]bool)
_ = json.Unmarshal(pushMsg.MsgData.Content, &m)
if value, ok := m["kicked"]; ok {
if value {
pushToUserIDList = append(pushToUserIDList, pushMsg.MsgData.SendID)
}
}
}
grpcCons := getcdv3.GetDefaultGatewayConn4Unique(config.Config.Etcd.EtcdSchema, strings.Join(config.Config.Etcd.EtcdAddr, ","), pushMsg.OperationID)