feat: sync monoforum and collectible emoji status
Sync telesrv bd15657 (feat(account): implement collectible emoji status). Skipped telesrv docs changes per public sync rules.
This commit is contained in:
parent
edb7057757
commit
0c99ae0a9d
91 changed files with 4061 additions and 693 deletions
|
|
@ -656,22 +656,23 @@ func appendNewMessageEvent(ctx context.Context, q *sqlcgen.Queries, msg domain.M
|
|||
peerType := string(msg.Peer.Type)
|
||||
peerID := msg.Peer.ID
|
||||
if err := q.AppendUserUpdateEvent(ctx, sqlcgen.AppendUserUpdateEventParams{
|
||||
UserID: msg.OwnerUserID,
|
||||
Pts: int32(msg.Pts),
|
||||
PtsCount: 1,
|
||||
Date: int32(msg.Date),
|
||||
EventType: string(domain.UpdateEventNewMessage),
|
||||
EventPeers: []byte("[]"),
|
||||
PeerSettings: []byte("{}"),
|
||||
MessageIds: []byte("[]"),
|
||||
DialogFilter: []byte("{}"),
|
||||
FilterOrder: []byte("[]"),
|
||||
FolderPeers: []byte("[]"),
|
||||
StoryPayload: []byte("{}"),
|
||||
ReactionPayload: []byte("{}"),
|
||||
MessageBoxID: &boxID,
|
||||
PeerType: &peerType,
|
||||
PeerID: &peerID,
|
||||
UserID: msg.OwnerUserID,
|
||||
Pts: int32(msg.Pts),
|
||||
PtsCount: 1,
|
||||
Date: int32(msg.Date),
|
||||
EventType: string(domain.UpdateEventNewMessage),
|
||||
EventPeers: []byte("[]"),
|
||||
PeerSettings: []byte("{}"),
|
||||
MessageIds: []byte("[]"),
|
||||
DialogFilter: []byte("{}"),
|
||||
FilterOrder: []byte("[]"),
|
||||
FolderPeers: []byte("[]"),
|
||||
StoryPayload: []byte("{}"),
|
||||
ReactionPayload: []byte("{}"),
|
||||
EmojiStatusPayload: []byte("{}"),
|
||||
MessageBoxID: &boxID,
|
||||
PeerType: &peerType,
|
||||
PeerID: &peerID,
|
||||
}); err != nil {
|
||||
return fmt.Errorf("append new message event: %w", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue