Skip to content

Commit

Permalink
Merge pull request #28 from go-park-mail-ru/TP-f07_fix
Browse files Browse the repository at this point in the history
TP-f07 update: get deleted message
  • Loading branch information
Gvidow authored Dec 28, 2023
2 parents aeffef9 + 2f1d1c2 commit f4b29eb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/pkg/usecase/message/usecase.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,8 @@ func (m *messageCase) receiveFromSubClient(ctx context.Context, userID int, subC
evMsg.Message, err = m.GetMessage(ctx, userID, msgObjID.MessageID)
if err != nil {
m.log.Error(err.Error())
}

if evMsg.Type == "delete" {
evMsg.Err = err
} else if evMsg.Type == "delete" {
evMsg.Message.Content.String = ""
}

Expand Down

0 comments on commit f4b29eb

Please sign in to comment.