From d32404e36722000df0f94f5d4aa68dee98a3a635 Mon Sep 17 00:00:00 2001 From: Mohammed Madi Date: Wed, 7 Feb 2024 14:09:12 +0000 Subject: [PATCH] Take soonest seq for role history --- rest/diagnostic_api.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rest/diagnostic_api.go b/rest/diagnostic_api.go index ae2257ef78..cb2d728a6f 100644 --- a/rest/diagnostic_api.go +++ b/rest/diagnostic_api.go @@ -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 {