Skip to content

Commit a36dbd9

Browse files
committed
appstate: add constants for all indexes
1 parent 8338520 commit a36dbd9

1 file changed

Lines changed: 92 additions & 16 deletions

File tree

appstate/keys.go

Lines changed: 92 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,99 @@ const (
3636
// AllPatchNames contains all currently known patch state names.
3737
var AllPatchNames = [...]WAPatchName{WAPatchCriticalBlock, WAPatchCriticalUnblockLow, WAPatchRegularHigh, WAPatchRegular, WAPatchRegularLow}
3838

39-
// Constants for the first part of app state indexes.
39+
// Constants for the regular_low app state indexes.
4040
const (
41-
IndexMute = "mute"
42-
IndexPin = "pin_v1"
43-
IndexArchive = "archive"
44-
IndexContact = "contact"
45-
IndexClearChat = "clearChat"
46-
IndexDeleteChat = "deleteChat"
47-
IndexStar = "star"
48-
IndexDeleteMessageForMe = "deleteMessageForMe"
49-
IndexMarkChatAsRead = "markChatAsRead"
50-
IndexSettingPushName = "setting_pushName"
51-
IndexSettingUnarchiveChats = "setting_unarchiveChats"
52-
IndexUserStatusMute = "userStatusMute"
53-
IndexLabelEdit = "label_edit"
54-
IndexLabelAssociationChat = "label_jid"
55-
IndexLabelAssociationMessage = "label_message"
41+
IndexPin = "pin_v1"
42+
IndexRecentEmojiWeightsAction = "recent_emoji_weights_action"
43+
IndexArchive = "archive"
44+
IndexSentinel = "sentinel"
45+
IndexMarkChatAsRead = "markChatAsRead"
46+
IndexSettingUnarchiveChats = "setting_unarchiveChats"
47+
IndexAndroidUnsupportedActions = "android_unsupported_actions"
48+
IndexTimeFormat = "time_format"
49+
IndexNux = "nux"
50+
IndexPrimaryVersion = "primary_version"
51+
IndexFavoriteSticker = "favoriteSticker"
52+
IndexRemoveRecentSticker = "removeRecentSticker"
53+
IndexBotWelcomeRequest = "bot_welcome_request"
54+
IndexPaymentInfo = "payment_info"
55+
IndexCustomPaymentMethods = "custom_payment_methods"
56+
IndexLock = "lock"
57+
IndexSettingChatLock = "setting_chatLock"
58+
IndexDeviceCapabilities = "device_capabilities"
59+
IndexNoteEdit = "note_edit"
60+
IndexMerchantPaymentPartner = "merchant_payment_partner"
61+
IndexPaymentTOS = "payment_tos"
62+
IndexAIThreadRename = "ai_thread_rename"
63+
IndexInteractiveMessageAction = "interactive_message_action"
64+
IndexSettingsSync = "settings_sync"
65+
)
66+
67+
// Constants for the regular app state indexes.
68+
const (
69+
IndexQuickReply = "quick_reply"
70+
IndexLabelAssociationMessage = "label_message"
71+
IndexLabelEdit = "label_edit"
72+
IndexLabelAssociationChat = "label_jid"
73+
IndexPrimaryFeature = "primary_feature"
74+
IndexDeviceAgent = "deviceAgent"
75+
IndexSubscription = "subscription"
76+
IndexAgentChatAssignment = "agentChatAssignment"
77+
IndexAgentChatAssignmentOpenedStatus = "agentChatAssignmentOpenedStatus"
78+
IndexPNForLIDChat = "pnForLidChat"
79+
IndexMarketingMessage = "marketingMessage"
80+
IndexMarketingMessageBroadcast = "marketingMessageBroadcast"
81+
IndexExternalWebBeta = "external_web_beta"
82+
IndexSettingRrelayAllCalls = "setting_relayAllCalls"
83+
IndexCallLog = "call_log"
84+
IndexDeleteIndividualCallLog = "delete_individual_call_log"
85+
IndexLabelReordering = "label_reordering"
86+
IndexSettingDisableLinkPreviews = "setting_disableLinkPreviews"
87+
IndexUsernameChatStartMode = "usernameChatStartMode"
88+
IndexNotificationActivitySetting = "notificationActivitySetting"
89+
IndexSettingChannelsPersonalisedRecommendationOptout = "setting_channels_personalised_recommendation_optout"
90+
IndexBroadcastJID = "broadcast_jid"
91+
IndexDetectedOutcomesStatusAction = "detected_outcomes_status_action"
92+
IndexBusinessBroadcastList = "business_broadcast_list"
93+
IndexMusicUserID = "music_user_id"
94+
IndexAvatarUpdatedAction = "avatar_updated_action"
95+
IndexGalaxyFlowAction = "galaxy_flow_action"
96+
IndexNewsletterSavedInterests = "newsletter_saved_interests"
97+
IndexShareOwnPN = "shareOwnPn"
98+
IndexBroadcast = "broadcast"
99+
)
100+
101+
// Constants for the regular_high app state indexes.
102+
const (
103+
IndexStar = "star"
104+
IndexMute = "mute"
105+
IndexDeleteMessageForMe = "deleteMessageForMe"
106+
IndexClearChat = "clearChat"
107+
IndexDeleteChat = "deleteChat"
108+
IndexUserStatusMute = "userStatusMute"
109+
IndexUGCBot = "ugc_bot"
110+
IndexStatusPrivacy = "status_privacy"
111+
IndexFavorites = "favorites"
112+
IndexWaffleAccountLinkState = "waffle_account_link_state"
113+
IndexCTWAPerCustomerDataSharing = "ctwaPerCustomerDataSharing"
114+
IndexMaibaAIFeaturesControl = "maiba_ai_features_control"
115+
IndexStatusPostOptInNotificationPreferencesAction = "status_post_opt_in_notification_preferences_action"
116+
IndexPrivateProcessingSetting = "private_processing_setting"
117+
IndexAIThreadDelete = "ai_thread_delete"
118+
)
119+
120+
// Constants for the critical_unblock_low app state indexes.
121+
const (
122+
IndexContact = "contact"
123+
IndexLIDContact = "lid_contact"
124+
)
125+
126+
// Constants for the critical_block app state indexes.
127+
const (
128+
IndexSettingSecurityNotification = "setting_securityNotification"
129+
IndexSettingPushName = "setting_pushName"
130+
IndexSettingLocale = "setting_locale"
131+
IndexGeneratedWUI = "generated_wui"
56132
)
57133

58134
type Processor struct {

0 commit comments

Comments
 (0)