fix(channels): sync stop replaying clear-history updates
This commit is contained in:
parent
73cf6a8184
commit
5e1f867b2d
4 changed files with 22 additions and 51 deletions
|
|
@ -2302,14 +2302,6 @@ func (s *Service) GetDifference(ctx context.Context, userID int64, req domain.Ch
|
|||
return domain.ChannelDifference{}, err
|
||||
}
|
||||
diff = s.filterBotChannelDifference(ctx, userID, diff)
|
||||
if diff.Self.HistoryClearAnchorID > 0 &&
|
||||
diff.Self.HistoryClearAnchorID == diff.Self.AvailableMinID &&
|
||||
!diff.TooLong {
|
||||
// updateChannelAvailableMessages is an absolute no-PTS update. Keep it
|
||||
// outside ChannelUpdateEvent so channel difference continuity remains
|
||||
// defined solely by real channel events.
|
||||
diff.AvailableMinID = diff.Self.AvailableMinID
|
||||
}
|
||||
return diff, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue