Skip to content

Commit

Permalink
feat(state): removed thread last message update in MessageAdd
Browse files Browse the repository at this point in the history
  • Loading branch information
FedorLap2006 committed Jan 15, 2022
1 parent f2dc014 commit 4ca359f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions state.go
Expand Up @@ -800,12 +800,6 @@ func (s *State) MessageAdd(message *Message) error {
if len(c.Messages) > s.MaxMessageCount {
c.Messages = c.Messages[len(c.Messages)-s.MaxMessageCount:]
}

if c.IsThread() {
c.MessageCount++
c.LastMessageID = message.ID
}

return nil
}

Expand Down

0 comments on commit 4ca359f

Please sign in to comment.