Skip to content

Commit 575c454

Browse files
committed
Merge remote-tracking branch 'origin/tuoyun' into tuoyun
2 parents 1e1d0e9 + 4dc5920 commit 575c454

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

internal/conversation_msg/conversation.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,11 @@ func (c *Conversation) revokeOneMessage(callback open_im_sdk_callback.Base, req
261261
req.Content = message.ClientMsgID
262262
req.ClientMsgID = utils.GetMsgID(message.SendID)
263263
req.ContentType = constant.Revoke
264+
req.SendTime = 0
265+
req.CreateTime = utils.GetCurrentTimestampByMill()
264266
options := make(map[string]bool, 5)
267+
utils.SetSwitchFromOptions(options, constant.IsUnreadCount, false)
268+
utils.SetSwitchFromOptions(options, constant.IsOfflinePush, false)
265269
resp, _ := c.internalSendMessage(callback, (*sdk_struct.MsgStruct)(&req), recvID, groupID, operationID, &server_api_params.OfflinePushInfo{}, false, options)
266270
req.ServerMsgID = resp.ServerMsgID
267271
req.SendTime = resp.SendTime

sdk_struct/sdk_struct.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ type MsgStruct struct {
893893
NotificationElem struct {
894894
Detail string `json:"detail"`
895895
DefaultTips string `json:"defaultTips"`
896-
}
896+
} `json:"notificationElem"`
897897
//RevokeMessage struct {
898898
// ServerMsgID string `json:"serverMsgID"`
899899
// SendID string `json:"sendID"`

0 commit comments

Comments
 (0)