kick group member add kicked notification

This commit is contained in:
Gordon
2023-02-01 17:33:56 +08:00
parent 2dab70697c
commit a60b584dca
3 changed files with 20 additions and 5 deletions
+5 -1
View File
@@ -9,7 +9,9 @@ import (
//"github.com/golang/protobuf/proto"
)
func SuperGroupNotification(operationID, sendID, recvID string) {
func SuperGroupNotification(operationID, sendID, recvID string, isKicked bool) {
m := make(map[string]bool)
m["kicked"] = isKicked
n := &NotificationMsg{
SendID: sendID,
RecvID: recvID,
@@ -18,6 +20,8 @@ func SuperGroupNotification(operationID, sendID, recvID string) {
SessionType: constant.SingleChatType,
OperationID: operationID,
}
n.Content = utils.StructToJsonBytes(m)
log.NewInfo(operationID, utils.GetSelfFuncName(), string(n.Content))
Notification(n)
}