Skip to content

Commit 64bc969

Browse files
committed
Update protobufs to v1013917984
1 parent 7f13c31 commit 64bc969

22 files changed

+1768
-990
lines changed

proto/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
js
1+
protos.js

proto/generate.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/bin/bash
22
cd $(dirname $0)
33
set -euo pipefail
4-
if [[ ! -d "js" ]]; then
5-
echo "Please download the WhatsApp JavaScript files into the js directory first"
4+
if [[ ! -f "protos.js" ]]; then
5+
echo "Please download the WhatsApp JavaScript modules with protobuf schemas into protos.js first"
66
exit 1
77
fi
88
node parse-proto.js
99
protoc --go_out=. --go_opt=paths=source_relative --go_opt=embed_raw=true */*.proto
10+
pre-commit run -a

proto/parse-proto.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ global.self = global
110110
global.__d = defineModule
111111
global.window = {}
112112

113-
const neededFiles = new Map()
113+
/*const neededFiles = new Map()
114114
require("child_process").spawnSync("grep", ["-Er", `^__d\\("([A-Za-z0-9]+\\.pb|WAProtoConst)",`, 'js'])
115115
.stdout
116116
.toString()
@@ -143,7 +143,8 @@ for (const [file, modules] of neededFilesList) {
143143
console.log("Requiring", file, "for", modules)
144144
require(`./${file}`)
145145
}
146-
}
146+
}*/
147+
require("./protos.js")
147148
console.log("Requirements loaded, evaluating...")
148149
loadLazyModules()
149150
console.log("Everything required")

proto/waArmadilloApplication/WAArmadilloApplication.pb.go

+52-36
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

proto/waArmadilloApplication/WAArmadilloApplication.proto

+1
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ message Armadillo {
239239
PaymentsTransactionMessage paymentsTransactionMessage = 10;
240240
BumpExistingMessage bumpExistingMessage = 11;
241241
NoteReplyMessage noteReplyMessage = 13;
242+
RavenMessage ravenMessageMsgr = 14;
242243
}
243244
}
244245

proto/waArmadilloXMA/WAArmadilloXMA.pb.go

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
39 Bytes
Binary file not shown.

proto/waArmadilloXMA/WAArmadilloXMA.proto

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ message ExtendedContentMessage {
2828
PORTRAIT = 3;
2929
STANDARD_DXMA = 12;
3030
LIST_DXMA = 15;
31+
GRID = 16;
3132
}
3233

3334
enum ExtendedContentType {
@@ -77,6 +78,7 @@ message ExtendedContentMessage {
7778
MSG_AVATAR_DETAILS = 2013;
7879
MSG_AI_CONTACT = 2014;
7980
MSG_MEMORIES_SHARE = 2015;
81+
MSG_SHARED_ALBUM_REPLY = 2016;
8082
RTC_AUDIO_CALL = 3000;
8183
RTC_VIDEO_CALL = 3001;
8284
RTC_MISSED_AUDIO_CALL = 3002;

0 commit comments

Comments
 (0)