MM-34895: LastViewed should be updated correctly for new thread membership (#17673)
Summary Update LastViewed correctly for new thread membership Ticket Link https://mattermost.atlassian.net/browse/MM-34895
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
6f5e14dd5e
Коммит
a95f90cec7
@@ -521,11 +521,15 @@ func (s *SqlThreadStore) MaintainMembership(userId, postId string, following, in
|
||||
if incrementMentions {
|
||||
mentions = 1
|
||||
}
|
||||
var lastViewed int64
|
||||
if updateViewedTimestamp {
|
||||
lastViewed = now
|
||||
}
|
||||
membership, err = s.SaveMembership(&model.ThreadMembership{
|
||||
PostId: postId,
|
||||
UserId: userId,
|
||||
Following: following,
|
||||
LastViewed: 0,
|
||||
LastViewed: lastViewed,
|
||||
LastUpdated: now,
|
||||
UnreadMentions: int64(mentions),
|
||||
})
|
||||
|
||||
Ссылка в новой задаче
Block a user