mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-11 20:45:57 +08:00
revoke super group message and push message modify
This commit is contained in:
@@ -133,7 +133,7 @@ func (g *Getui) Push(userIDList []string, alert, detailContent, operationID stri
|
||||
}
|
||||
pushReq.PushMessage.Notification = Notification{
|
||||
Title: alert,
|
||||
Body: alert,
|
||||
Body: detailContent,
|
||||
ClickType: "startapp",
|
||||
}
|
||||
pushReq.PushChannel.Ios.Aps.Sound = "default"
|
||||
|
||||
@@ -94,6 +94,7 @@ func MsgToUser(pushMsg *pbPush.PushMsgReq) {
|
||||
var content string
|
||||
if pushMsg.MsgData.OfflinePushInfo != nil {
|
||||
content = pushMsg.MsgData.OfflinePushInfo.Title
|
||||
jsonCustomContent = pushMsg.MsgData.OfflinePushInfo.Desc
|
||||
|
||||
} else {
|
||||
switch pushMsg.MsgData.ContentType {
|
||||
@@ -225,6 +226,7 @@ func MsgToSuperGroupUser(pushMsg *pbPush.PushMsgReq) {
|
||||
var content string
|
||||
if pushMsg.MsgData.OfflinePushInfo != nil {
|
||||
content = pushMsg.MsgData.OfflinePushInfo.Title
|
||||
jsonCustomContent = pushMsg.MsgData.OfflinePushInfo.Desc
|
||||
|
||||
} else {
|
||||
switch pushMsg.MsgData.ContentType {
|
||||
|
||||
Reference in New Issue
Block a user