Skip to content

Commit

Permalink
proto: update to v1018887907
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Dec 15, 2024
1 parent b2dd543 commit dbbf7ae
Show file tree
Hide file tree
Showing 11 changed files with 911 additions and 552 deletions.
2 changes: 1 addition & 1 deletion binary/proto/legacy.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ type (
const (
ADVEncryptionType_E2EE = waAdv.ADVEncryptionType_E2EE
ADVEncryptionType_HOSTED = waAdv.ADVEncryptionType_HOSTED
KeepType_UNKNOWN = waE2E.KeepType_UNKNOWN
KeepType_UNKNOWN = waE2E.KeepType_UNKNOWN_KEEP_TYPE
KeepType_KEEP_FOR_ALL = waE2E.KeepType_KEEP_FOR_ALL
KeepType_UNDO_KEEP_FOR_ALL = waE2E.KeepType_UNDO_KEEP_FOR_ALL
PeerDataOperationRequestType_UPLOAD_STICKER = waE2E.PeerDataOperationRequestType_UPLOAD_STICKER
Expand Down
1,224 changes: 677 additions & 547 deletions proto/waE2E/WAWebProtobufsE2E.pb.go

Large diffs are not rendered by default.

Binary file modified proto/waE2E/WAWebProtobufsE2E.pb.raw
Binary file not shown.
19 changes: 16 additions & 3 deletions proto/waE2E/WAWebProtobufsE2E.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import "waCompanionReg/WAWebProtobufsCompanionReg.proto";
import "waMmsRetry/WAMmsRetry.proto";
import "waCommon/WACommon.proto";

enum PollMediaType {
enum PollContentType {
UNKNOWN_POLL_CONTENT_TYPE = 0;
TEXT = 1;
IMAGE = 2;
}
Expand Down Expand Up @@ -52,7 +53,7 @@ enum BotSessionSource {
}

enum KeepType {
UNKNOWN = 0;
UNKNOWN_KEEP_TYPE = 0;
KEEP_FOR_ALL = 1;
UNDO_KEEP_FOR_ALL = 2;
}
Expand Down Expand Up @@ -211,7 +212,7 @@ message PollCreationMessage {
repeated Option options = 3;
optional uint32 selectableOptionsCount = 4;
optional ContextInfo contextInfo = 5;
optional PollMediaType pollMediaType = 6;
optional PollContentType pollContentType = 6;
optional PollType pollType = 7;
optional Option correctAnswer = 8;
}
Expand Down Expand Up @@ -346,6 +347,16 @@ message InteractiveMessage {
optional int32 messageVersion = 3;
}

message UrlTrackingMap {
message UrlTrackingMapElement {
optional string originalURL = 1;
optional string unconsentedUsersURL = 2;
optional string consentedUsersURL = 3;
}

repeated UrlTrackingMapElement urlTrackingMapElements = 1;
}

message CarouselMessage {
repeated InteractiveMessage cards = 1;
optional int32 messageVersion = 2;
Expand Down Expand Up @@ -402,6 +413,7 @@ message InteractiveMessage {
optional Body body = 2;
optional Footer footer = 3;
optional ContextInfo contextInfo = 15;
optional UrlTrackingMap urlTrackingMap = 16;
}

message ListResponseMessage {
Expand Down Expand Up @@ -1403,6 +1415,7 @@ message Message {
optional FutureProofMessage pollCreationMessageV4 = 93;
optional FutureProofMessage pollCreationMessageV5 = 94;
optional FutureProofMessage statusAddYours = 95;
optional FutureProofMessage groupStatusMessage = 96;
}

message AlbumMessage {
Expand Down
8 changes: 8 additions & 0 deletions proto/waHistorySync/WAWebProtobufsHistorySync.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified proto/waHistorySync/WAWebProtobufsHistorySync.pb.raw
Binary file not shown.
1 change: 1 addition & 0 deletions proto/waHistorySync/WAWebProtobufsHistorySync.proto
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ message Conversation {
optional bool locked = 46;
optional PrivacySystemMessage systemMessageToInsert = 47;
optional bool capiCreatedGroup = 48;
optional string accountLid = 49;
}

message GroupParticipant {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
syntax = "proto2";
package WAWebProtobufLidMigrationSyncPayload;
option go_package = "go.mau.fi/whatsmeow/proto/waLidMigrationSyncPayload";

message LIDMigrationMapping {
required uint64 pn = 1;
required uint64 assignedLid = 2;
optional uint64 latestLid = 3;
}

message LIDMigrationMappingSyncPayload {
repeated LIDMigrationMapping pnToLidMappings = 1;
}
2 changes: 1 addition & 1 deletion store/clientpayload.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (vc WAVersionContainer) ProtoAppVersion() *waProto.ClientPayload_UserAgent_
}

// waVersion is the WhatsApp web client version
var waVersion = WAVersionContainer{2, 3000, 1018265499}
var waVersion = WAVersionContainer{2, 3000, 1018887907}

// waVersionHash is the md5 hash of a dot-separated waVersion
var waVersionHash [16]byte
Expand Down

0 comments on commit dbbf7ae

Please sign in to comment.