fix: message can store Ex (#2371) (#2372)

(cherry picked from commit e6f1232582)
This commit is contained in:
icey-yu
2024-06-28 10:37:23 +08:00
committed by GitHub
parent 2010aa3e8e
commit 2f25578583
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -101,6 +101,7 @@ func (m MessageApi) newUserSendMsgReq(_ *gin.Context, params *apistruct.SendMsg)
SendTime: params.SendTime,
Options: options,
OfflinePushInfo: params.OfflinePushInfo,
Ex: params.Ex,
},
}
return &pbData
+3
View File
@@ -55,6 +55,9 @@ type SendMsg struct {
// OfflinePushInfo contains information for offline push notifications.
OfflinePushInfo *sdkws.OfflinePushInfo `json:"offlinePushInfo"`
// Ex stores extended fields
Ex string `json:"ex"`
}
// SendMsgReq extends SendMsg with the requirement of RecvID when SessionType indicates a one-on-one or notification chat.