From ba5da011ba6d0689f3a58ebcc1db6406025d0a01 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 22 May 2023 11:38:28 +0300 Subject: [PATCH] Update to web version 2.2321.6 --- binary/proto/def.pb.go | 17 +++++++++++++++++ binary/proto/def.pb.raw | Bin 74985 -> 75061 bytes binary/proto/def.proto | 4 ++++ store/clientpayload.go | 2 +- 4 files changed, 22 insertions(+), 1 deletion(-) diff --git a/binary/proto/def.pb.go b/binary/proto/def.pb.go index f09632c7..78024659 100644 --- a/binary/proto/def.pb.go +++ b/binary/proto/def.pb.go @@ -282,6 +282,9 @@ const ( DeviceProps_IOS_CATALYST DeviceProps_PlatformType = 15 DeviceProps_ANDROID_PHONE DeviceProps_PlatformType = 16 DeviceProps_ANDROID_AMBIGUOUS DeviceProps_PlatformType = 17 + DeviceProps_WEAR_OS DeviceProps_PlatformType = 18 + DeviceProps_AR_WRIST DeviceProps_PlatformType = 19 + DeviceProps_AR_DEVICE DeviceProps_PlatformType = 20 ) // Enum value maps for DeviceProps_PlatformType. @@ -305,6 +308,9 @@ var ( 15: "IOS_CATALYST", 16: "ANDROID_PHONE", 17: "ANDROID_AMBIGUOUS", + 18: "WEAR_OS", + 19: "AR_WRIST", + 20: "AR_DEVICE", } DeviceProps_PlatformType_value = map[string]int32{ "UNKNOWN": 0, @@ -325,6 +331,9 @@ var ( "IOS_CATALYST": 15, "ANDROID_PHONE": 16, "ANDROID_AMBIGUOUS": 17, + "WEAR_OS": 18, + "AR_WRIST": 19, + "AR_DEVICE": 20, } ) @@ -23217,6 +23226,7 @@ type ClientPayload_UserAgent struct { LocaleLanguageIso6391 *string `protobuf:"bytes,11,opt,name=localeLanguageIso6391" json:"localeLanguageIso6391,omitempty"` LocaleCountryIso31661Alpha2 *string `protobuf:"bytes,12,opt,name=localeCountryIso31661Alpha2" json:"localeCountryIso31661Alpha2,omitempty"` DeviceBoard *string `protobuf:"bytes,13,opt,name=deviceBoard" json:"deviceBoard,omitempty"` + DeviceExpId *string `protobuf:"bytes,14,opt,name=deviceExpId" json:"deviceExpId,omitempty"` } func (x *ClientPayload_UserAgent) Reset() { @@ -23342,6 +23352,13 @@ func (x *ClientPayload_UserAgent) GetDeviceBoard() string { return "" } +func (x *ClientPayload_UserAgent) GetDeviceExpId() string { + if x != nil && x.DeviceExpId != nil { + return *x.DeviceExpId + } + return "" +} + type ClientPayload_InteropData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/binary/proto/def.pb.raw b/binary/proto/def.pb.raw index a5583f7274096366d1748f3478d9a976e45174d8..f8eafefa24c9fb8825d7f873ca05f3eb20a8a415 100644 GIT binary patch delta 134 zcmaEPl4a{DmJMdijDI$pGoNE(T)UZ#jfGKPh?|Q&+|@BC-alACNQj4v1IP>y@(d0U z5EkO);so+sT*Ew_T?IsxjxutIOm<`!*{sZ7ewL|IdGnkrC)pWyY)-r5&7>%#z{Q=C cT9%od>RM6YnIgfbz^K6)ge0_i!#ztk00>kkvj6}9 delta 48 zcmV-00MGxm$^_}j1h6&(0n)QK1I_{ggR=$(1Oc-&2awGI=OVMl)X4_{ma~xDO9Hd~ G-Z)0w9u$25 diff --git a/binary/proto/def.proto b/binary/proto/def.proto index f1407507..b192a39b 100644 --- a/binary/proto/def.proto +++ b/binary/proto/def.proto @@ -58,6 +58,9 @@ message DeviceProps { IOS_CATALYST = 15; ANDROID_PHONE = 16; ANDROID_AMBIGUOUS = 17; + WEAR_OS = 18; + AR_WRIST = 19; + AR_DEVICE = 20; } message HistorySyncConfig { optional uint32 fullSyncDaysLimit = 1; @@ -2012,6 +2015,7 @@ message ClientPayload { optional string localeLanguageIso6391 = 11; optional string localeCountryIso31661Alpha2 = 12; optional string deviceBoard = 13; + optional string deviceExpId = 14; } enum Product { diff --git a/store/clientpayload.go b/store/clientpayload.go index 47f8312c..c96c5ab8 100644 --- a/store/clientpayload.go +++ b/store/clientpayload.go @@ -74,7 +74,7 @@ func (vc WAVersionContainer) ProtoAppVersion() *waProto.ClientPayload_UserAgent_ } // waVersion is the WhatsApp web client version -var waVersion = WAVersionContainer{2, 2320, 10} +var waVersion = WAVersionContainer{2, 2321, 6} // waVersionHash is the md5 hash of a dot-separated waVersion var waVersionHash [16]byte