super group add notification

This commit is contained in:
Gordon
2022-06-07 19:02:19 +08:00
parent 88c4cff50c
commit 7d0c8b0c5f
3 changed files with 11 additions and 14 deletions
+5 -4
View File
@@ -9,7 +9,8 @@ import (
//"github.com/golang/protobuf/proto"
)
func SuperGroupNotification(operationID, sendID, recvID string) {
func SuperGroupNotification(operationID, sendID, groupID string) {
//var tips sdk.TipsComm
//var err error
//marshaler := jsonpb.Marshaler{
@@ -20,10 +21,10 @@ func SuperGroupNotification(operationID, sendID, recvID string) {
//tips.JsonDetail, _ = marshaler.MarshalToString(m)
n := &NotificationMsg{
SendID: sendID,
RecvID: recvID,
MsgFrom: constant.UserMsgType,
RecvID: groupID,
MsgFrom: constant.SysMsgType,
ContentType: constant.SuperGroupUpdateNotification,
SessionType: constant.SingleChatType,
SessionType: constant.SuperGroupChatType,
OperationID: operationID,
}
//n.Content, err = proto.Marshal(&tips)