fix(messages): sync preserve private dialogs after clearing history
This commit is contained in:
parent
3926db7762
commit
e22fac1c3f
19 changed files with 923 additions and 231 deletions
|
|
@ -3137,11 +3137,12 @@ func summarizeDeleteResult(res domain.DeleteMessagesResult) []any {
|
|||
for _, item := range res.Deleted {
|
||||
ids := append([]int(nil), item.MessageIDs...)
|
||||
sort.Ints(ids)
|
||||
pts, ptsCount := item.AffectedPts()
|
||||
out = append(out, map[string]any{
|
||||
"user_id": item.UserID,
|
||||
"message_ids": ids,
|
||||
"pts": item.Event.Pts,
|
||||
"pts_count": item.Event.PtsCount,
|
||||
"pts": pts,
|
||||
"pts_count": ptsCount,
|
||||
})
|
||||
}
|
||||
return out
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue