Skip to content

Commit

Permalink
Add new LS table type
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed May 28, 2024
1 parent c06a4ea commit 9287a71
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions messagix/table/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,14 @@ type LSUpdateUnsentMessageCollapsedStatus struct {
Unrecognized map[int]any `json:",omitempty"`
}

type LSUpdateOrInsertEditMessageHistory struct {
OriginalMessageID string `index:"0" json:",omitempty"`
ThreadKey int64 `index:"1" json:",omitempty"`
ServerAdjustedEditTimestampMS int64 `index:"2" json:",omitempty"`
MessageContent string `index:"3" json:",omitempty"`
SendStatus int64 `index:"4" json:",omitempty"`
}

type LSDeleteThenInsertMessage struct {
Text string `index:"0" json:",omitempty"`
SubscriptErrorMessage string `index:"1" json:",omitempty"`
Expand Down
2 changes: 2 additions & 0 deletions messagix/table/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ type LSTable struct {
LSUpdateExtraAttachmentColumns []*LSUpdateExtraAttachmentColumns `json:",omitempty"`
LSMoveThreadToE2EECutoverFolder []*LSMoveThreadToE2EECutoverFolder `json:",omitempty"`
LSHandleFailedTask []*LSHandleFailedTask `json:",omitempty"`
LSUpdateOrInsertEditMessageHistory []*LSUpdateOrInsertEditMessageHistory `json:",omitempty"`
}

// TODO replace SPTable with struct tags
Expand Down Expand Up @@ -270,6 +271,7 @@ var SPTable = map[string]string{
"updateExtraAttachmentColumns": "LSUpdateExtraAttachmentColumns",
"moveThreadToE2EECutoverFolder": "LSMoveThreadToE2EECutoverFolder",
"handleFailedTask": "LSHandleFailedTask",
"updateOrInsertEditMessageHistory": "LSUpdateOrInsertEditMessageHistory",
}

func SPToDepMap(sp []string) map[string]string {
Expand Down

0 comments on commit 9287a71

Please sign in to comment.