Skip to content

Commit

Permalink
TP-f07 update: get deleted message
Browse files Browse the repository at this point in the history
  • Loading branch information
Gvidow committed Dec 28, 2023
1 parent d387657 commit 2f1d1c2
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 2f1d1c2

Please sign in to comment.