Skip to content

Commit

Permalink
Take soonest seq for role history
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammed-madi committed Feb 7, 2024
1 parent 2c63df4 commit d32404e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rest/diagnostic_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ func (h *handler) handleGetAllChannels() error {
}
// loop over previous role channels
for channel, chanHistory := range collectionAccess.ChannelHistory() {
if seq.Sequence > chanHistory.Entries[len(chanHistory.Entries)-1].StartSeq {
chanHistory.Entries[len(chanHistory.Entries)-1].StartSeq = seq.Sequence
}
if _, ok := user.ExplicitRoles()[roleName]; ok {
adminRoleChannelTimedHistory[channel] = chanHistory
} else {
Expand Down

0 comments on commit d32404e

Please sign in to comment.