mirror of
https://github.com/makayabou/asg-server.git
synced 2026-05-02 17:43:36 +02:00
add content in GetMessage
This commit is contained in:
parent
afdbc07b30
commit
3ef46e99bd
@ -162,7 +162,12 @@ func (s *Service) GetState(user models.User, ID string) (MessageStateOut, error)
|
||||
func (s *Service) GetMessage(user models.User, ID string) (MessageOut, error) {
|
||||
message, err := s.messages.Get(
|
||||
MessagesSelectFilter{ExtID: ID, UserID: user.ID},
|
||||
MessagesSelectOptions{WithRecipients: true, WithDevice: true, WithStates: true},
|
||||
MessagesSelectOptions{
|
||||
WithRecipients: true,
|
||||
WithDevice: true,
|
||||
WithStates: true,
|
||||
WithContent: true,
|
||||
},
|
||||
)
|
||||
if err != nil {
|
||||
if errors.Is(err, ErrMessageNotFound) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user