perf: sync protocol and core hardening updates
This commit is contained in:
parent
152fed3b87
commit
4390ebf5a9
283 changed files with 29231 additions and 2295 deletions
|
|
@ -206,6 +206,14 @@ func (r *Router) channelMessagesUpdatesWithPeerCache(ctx context.Context, viewer
|
|||
updates = append(updates, update)
|
||||
}
|
||||
}
|
||||
if res.Duplicate && res.ReplayDeleteEvent != nil {
|
||||
if update := tgChannelUpdate(viewerUserID, *res.ReplayDeleteEvent); update != nil {
|
||||
updates = append(updates, update)
|
||||
}
|
||||
if res.ReplayDeleteEvent.Date > date {
|
||||
date = res.ReplayDeleteEvent.Date
|
||||
}
|
||||
}
|
||||
collectChannelUpdatePeerRefs(res.Event, res.Channel.ID, userIDs, channelIDs)
|
||||
collectChannelMessagePeerRefs(res.Message, res.Channel.ID, userIDs, channelIDs)
|
||||
if date == 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue