Skip to content

Commit

Permalink
Add delete thread table
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jan 22, 2024
1 parent 4179394 commit 299eab2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions messagix/table/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ type LSTable struct {
LSDeleteThenInsertBotProfileInfoCategoryV2 []*LSDeleteThenInsertBotProfileInfoCategoryV2 `json:",omitempty"`
LSDeleteThenInsertBotProfileInfoV2 []*LSDeleteThenInsertBotProfileInfoV2 `json:",omitempty"`
LSHandleSyncFailure []*LSHandleSyncFailure `json:",omitempty"`
LSDeleteThread []*LSDeleteThread `json:",omitempty"`
}

// TODO replace SPTable with struct tags
Expand Down Expand Up @@ -245,6 +246,7 @@ var SPTable = map[string]string{
"deleteThenInsertBotProfileInfoCategoryV2": "LSDeleteThenInsertBotProfileInfoCategoryV2",
"deleteThenInsertBotProfileInfoV2": "LSDeleteThenInsertBotProfileInfoV2",
"handleSyncFailure": "LSHandleSyncFailure",
"deleteThread": "LSDeleteThread",
}

func SPToDepMap(sp []string) map[string]string {
Expand Down
7 changes: 7 additions & 0 deletions messagix/table/threads.go
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,10 @@ type LSRemoveAllRequestsFromAdminApprovalQueue struct {

Unrecognized map[int]any `json:",omitempty"`
}

type LSDeleteThread struct {
ThreadKey int64 `index:"0" json:",omitempty"`
UnknownBool1 bool `index:"1" json:",omitempty"`

Unrecognized map[int]any `json:",omitempty"`
}

0 comments on commit 299eab2

Please sign in to comment.