Skip to content

Commit

Permalink
fix: message can store Ex (#2371)
Browse files Browse the repository at this point in the history
  • Loading branch information
icey-yu authored Jun 27, 2024
1 parent d660615 commit e6f1232
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/api/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions pkg/apistruct/manage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e6f1232

Please sign in to comment.