slidge-whatsapp 0.3.7__cp312-cp312-manylinux_2_41_aarch64.whl → 0.3.8__cp312-cp312-manylinux_2_41_aarch64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. slidge_whatsapp/config.py +7 -2
  2. slidge_whatsapp/contact.py +3 -2
  3. slidge_whatsapp/event.go +14 -9
  4. slidge_whatsapp/gateway.go +7 -1
  5. slidge_whatsapp/generated/_whatsapp.cpython-312-aarch64-linux-gnu.h +182 -178
  6. slidge_whatsapp/generated/_whatsapp.cpython-312-aarch64-linux-gnu.so +0 -0
  7. slidge_whatsapp/generated/build.py +146 -142
  8. slidge_whatsapp/generated/whatsapp.c +1456 -1376
  9. slidge_whatsapp/generated/whatsapp.go +1069 -1045
  10. slidge_whatsapp/generated/whatsapp.py +1324 -1298
  11. slidge_whatsapp/generated/whatsapp_go.h +182 -178
  12. slidge_whatsapp/go.mod +6 -6
  13. slidge_whatsapp/go.sum +12 -12
  14. slidge_whatsapp/group.py +25 -0
  15. slidge_whatsapp/session.go +69 -67
  16. slidge_whatsapp/session.py +11 -1
  17. slidge_whatsapp/vendor/github.com/coder/websocket/LICENSE.txt +13 -0
  18. slidge_whatsapp/vendor/github.com/coder/websocket/Makefile +18 -0
  19. slidge_whatsapp/vendor/github.com/coder/websocket/README.md +162 -0
  20. slidge_whatsapp/vendor/github.com/coder/websocket/accept.go +378 -0
  21. slidge_whatsapp/vendor/github.com/coder/websocket/close.go +335 -0
  22. slidge_whatsapp/vendor/github.com/coder/websocket/compress.go +234 -0
  23. slidge_whatsapp/vendor/github.com/coder/websocket/conn.go +306 -0
  24. slidge_whatsapp/vendor/github.com/coder/websocket/dial.go +347 -0
  25. slidge_whatsapp/vendor/github.com/coder/websocket/doc.go +33 -0
  26. slidge_whatsapp/vendor/github.com/coder/websocket/errors.go +8 -0
  27. slidge_whatsapp/vendor/github.com/coder/websocket/frame.go +173 -0
  28. slidge_whatsapp/vendor/github.com/coder/websocket/hijack.go +33 -0
  29. slidge_whatsapp/vendor/github.com/coder/websocket/internal/bpool/bpool.go +25 -0
  30. slidge_whatsapp/vendor/github.com/coder/websocket/internal/errd/wrap.go +14 -0
  31. slidge_whatsapp/vendor/github.com/coder/websocket/internal/util/util.go +15 -0
  32. slidge_whatsapp/vendor/github.com/coder/websocket/internal/wsjs/wsjs_js.go +169 -0
  33. slidge_whatsapp/vendor/github.com/coder/websocket/mask.go +128 -0
  34. slidge_whatsapp/vendor/github.com/coder/websocket/mask_amd64.s +127 -0
  35. slidge_whatsapp/vendor/github.com/coder/websocket/mask_arm64.s +72 -0
  36. slidge_whatsapp/vendor/github.com/coder/websocket/mask_asm.go +26 -0
  37. slidge_whatsapp/vendor/github.com/coder/websocket/mask_go.go +7 -0
  38. slidge_whatsapp/vendor/github.com/coder/websocket/netconn.go +233 -0
  39. slidge_whatsapp/vendor/github.com/coder/websocket/netconn_js.go +11 -0
  40. slidge_whatsapp/vendor/github.com/coder/websocket/netconn_notjs.go +19 -0
  41. slidge_whatsapp/vendor/github.com/coder/websocket/read.go +540 -0
  42. slidge_whatsapp/vendor/github.com/coder/websocket/stringer.go +91 -0
  43. slidge_whatsapp/vendor/github.com/coder/websocket/write.go +384 -0
  44. slidge_whatsapp/vendor/github.com/coder/websocket/ws_js.go +598 -0
  45. slidge_whatsapp/vendor/github.com/ebitengine/purego/func.go +1 -1
  46. slidge_whatsapp/vendor/github.com/ebitengine/purego/struct_amd64.go +1 -1
  47. slidge_whatsapp/vendor/github.com/ebitengine/purego/struct_arm64.go +3 -1
  48. slidge_whatsapp/vendor/github.com/ebitengine/purego/struct_loong64.go +1 -1
  49. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/directive.go +3 -0
  50. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/selection.go +3 -0
  51. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/value.go +4 -3
  52. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/encode.go +3 -0
  53. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate.go +18 -4
  54. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/broadcast.go +3 -3
  55. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/call.go +6 -4
  56. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/client.go +90 -80
  57. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/connectionevents.go +14 -11
  58. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download.go +4 -1
  59. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/group.go +47 -48
  60. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/handshake.go +3 -2
  61. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/internals.go +79 -75
  62. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/keepalive.go +8 -6
  63. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/mediaconn.go +1 -2
  64. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/mediaretry.go +2 -2
  65. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/message.go +42 -40
  66. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/newsletter.go +35 -32
  67. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/notification.go +2 -3
  68. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/pair-code.go +2 -4
  69. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/pair.go +19 -19
  70. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/prekeys.go +9 -8
  71. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/presence.go +9 -9
  72. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/privacysettings.go +4 -5
  73. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloAddMessage/InstamadilloAddMessage.pb.go +1 -1
  74. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeActionLog/InstamadilloCoreTypeActionLog.pb.go +1 -1
  75. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeAdminMessage/InstamadilloCoreTypeAdminMessage.pb.go +1 -1
  76. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeCollection/InstamadilloCoreTypeCollection.pb.go +1 -1
  77. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeLink/InstamadilloCoreTypeLink.pb.go +1 -1
  78. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeMedia/InstamadilloCoreTypeMedia.pb.go +1 -1
  79. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeText/InstamadilloCoreTypeText.pb.go +1 -1
  80. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloDeleteMessage/InstamadilloDeleteMessage.pb.go +1 -1
  81. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloSupplementMessage/InstamadilloSupplementMessage.pb.go +1 -1
  82. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloTransportPayload/InstamadilloTransportPayload.pb.go +1 -1
  83. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloXmaContentRef/InstamadilloXmaContentRef.pb.go +1 -1
  84. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waAICommon/WAAICommon.pb.go +1145 -335
  85. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waAICommon/WAAICommon.proto +78 -0
  86. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waAdv/WAAdv.pb.go +1 -1
  87. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloApplication/WAArmadilloApplication.pb.go +1 -1
  88. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.pb.go +1 -1
  89. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCert/WACert.pb.go +1 -1
  90. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waChatLockSettings/WAProtobufsChatLockSettings.pb.go +1 -1
  91. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCommon/WACommon.pb.go +1 -1
  92. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WACompanionReg.pb.go +22 -4
  93. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WACompanionReg.proto +2 -0
  94. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waConsumerApplication/WAConsumerApplication.pb.go +1 -1
  95. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waDeviceCapabilities/WAProtobufsDeviceCapabilities.pb.go +104 -30
  96. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waDeviceCapabilities/WAProtobufsDeviceCapabilities.proto +7 -0
  97. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.pb.go +1037 -963
  98. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.proto +15 -8
  99. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.pb.go +1 -1
  100. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waLidMigrationSyncPayload/WAWebProtobufLidMigrationSyncPayload.pb.go +1 -1
  101. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMediaTransport/WAMediaTransport.pb.go +1 -1
  102. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMmsRetry/WAMmsRetry.pb.go +1 -1
  103. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgApplication/WAMsgApplication.pb.go +1 -1
  104. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/WAMsgTransport.pb.go +1 -1
  105. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMultiDevice/WAMultiDevice.pb.go +1 -1
  106. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waServerSync/WAServerSync.pb.go +1 -1
  107. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waStatusAttributions/WAStatusAttributions.pb.go +40 -35
  108. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waStatusAttributions/WAStatusAttributions.proto +1 -0
  109. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.pb.go +921 -653
  110. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.proto +44 -15
  111. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waUserPassword/WAProtobufsUserPassword.pb.go +1 -1
  112. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waVnameCert/WAWebProtobufsVnameCert.pb.go +1 -1
  113. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.pb.go +9 -5
  114. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.proto +1 -0
  115. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.pb.go +193 -115
  116. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.proto +9 -0
  117. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/push.go +2 -4
  118. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/receipt.go +12 -12
  119. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/request.go +25 -19
  120. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/retry.go +2 -2
  121. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/send.go +43 -27
  122. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/sendfb.go +4 -4
  123. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/socket/constants.go +1 -1
  124. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/socket/framesocket.go +43 -56
  125. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/socket/noisehandshake.go +9 -3
  126. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/socket/noisesocket.go +36 -22
  127. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/clientpayload.go +24 -4
  128. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/store.go +12 -0
  129. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/events/appstate.go +2 -1
  130. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/upload.go +1 -1
  131. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/user.go +79 -40
  132. slidge_whatsapp/vendor/golang.org/x/sys/unix/mkerrors.sh +2 -0
  133. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux.go +6 -0
  134. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux.go +359 -0
  135. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux.go +10 -0
  136. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux.go +31 -0
  137. slidge_whatsapp/vendor/golang.org/x/sys/windows/syscall_windows.go +15 -0
  138. slidge_whatsapp/vendor/golang.org/x/sys/windows/types_windows.go +76 -0
  139. slidge_whatsapp/vendor/golang.org/x/sys/windows/zsyscall_windows.go +37 -0
  140. slidge_whatsapp/vendor/modules.txt +12 -8
  141. {slidge_whatsapp-0.3.7.dist-info → slidge_whatsapp-0.3.8.dist-info}/METADATA +1 -1
  142. {slidge_whatsapp-0.3.7.dist-info → slidge_whatsapp-0.3.8.dist-info}/RECORD +145 -136
  143. slidge_whatsapp/vendor/github.com/gorilla/websocket/.gitignore +0 -25
  144. slidge_whatsapp/vendor/github.com/gorilla/websocket/AUTHORS +0 -9
  145. slidge_whatsapp/vendor/github.com/gorilla/websocket/LICENSE +0 -22
  146. slidge_whatsapp/vendor/github.com/gorilla/websocket/README.md +0 -33
  147. slidge_whatsapp/vendor/github.com/gorilla/websocket/client.go +0 -434
  148. slidge_whatsapp/vendor/github.com/gorilla/websocket/compression.go +0 -148
  149. slidge_whatsapp/vendor/github.com/gorilla/websocket/conn.go +0 -1238
  150. slidge_whatsapp/vendor/github.com/gorilla/websocket/doc.go +0 -227
  151. slidge_whatsapp/vendor/github.com/gorilla/websocket/join.go +0 -42
  152. slidge_whatsapp/vendor/github.com/gorilla/websocket/json.go +0 -60
  153. slidge_whatsapp/vendor/github.com/gorilla/websocket/mask.go +0 -55
  154. slidge_whatsapp/vendor/github.com/gorilla/websocket/mask_safe.go +0 -16
  155. slidge_whatsapp/vendor/github.com/gorilla/websocket/prepared.go +0 -102
  156. slidge_whatsapp/vendor/github.com/gorilla/websocket/proxy.go +0 -77
  157. slidge_whatsapp/vendor/github.com/gorilla/websocket/server.go +0 -365
  158. slidge_whatsapp/vendor/github.com/gorilla/websocket/tls_handshake.go +0 -21
  159. slidge_whatsapp/vendor/github.com/gorilla/websocket/tls_handshake_116.go +0 -21
  160. slidge_whatsapp/vendor/github.com/gorilla/websocket/util.go +0 -298
  161. slidge_whatsapp/vendor/github.com/gorilla/websocket/x_net_proxy.go +0 -473
  162. {slidge_whatsapp-0.3.7.dist-info → slidge_whatsapp-0.3.8.dist-info}/WHEEL +0 -0
  163. {slidge_whatsapp-0.3.7.dist-info → slidge_whatsapp-0.3.8.dist-info}/entry_points.txt +0 -0
  164. {slidge_whatsapp-0.3.7.dist-info → slidge_whatsapp-0.3.8.dist-info}/licenses/LICENSE +0 -0
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-go. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-go v1.36.6
3
+ // protoc-gen-go v1.36.10
4
4
  // protoc v3.21.12
5
5
  // source: waWeb/WAWebProtobufsWeb.proto
6
6
 
@@ -310,6 +310,8 @@ const (
310
310
  WebMessageInfo_GROUP_MEMBER_LINK_MODE WebMessageInfo_StubType = 217
311
311
  WebMessageInfo_BIZ_AUTOMATICALLY_LABELED_CHAT_SYSTEM_MESSAGE WebMessageInfo_StubType = 218
312
312
  WebMessageInfo_PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE WebMessageInfo_StubType = 219
313
+ WebMessageInfo_QUARANTINED_MESSAGE WebMessageInfo_StubType = 220
314
+ WebMessageInfo_GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE WebMessageInfo_StubType = 221
313
315
  )
314
316
 
315
317
  // Enum value maps for WebMessageInfo_StubType.
@@ -535,6 +537,8 @@ var (
535
537
  217: "GROUP_MEMBER_LINK_MODE",
536
538
  218: "BIZ_AUTOMATICALLY_LABELED_CHAT_SYSTEM_MESSAGE",
537
539
  219: "PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE",
540
+ 220: "QUARANTINED_MESSAGE",
541
+ 221: "GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE",
538
542
  }
539
543
  WebMessageInfo_StubType_value = map[string]int32{
540
544
  "UNKNOWN": 0,
@@ -757,6 +761,8 @@ var (
757
761
  "GROUP_MEMBER_LINK_MODE": 217,
758
762
  "BIZ_AUTOMATICALLY_LABELED_CHAT_SYSTEM_MESSAGE": 218,
759
763
  "PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE": 219,
764
+ "QUARANTINED_MESSAGE": 220,
765
+ "GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE": 221,
760
766
  }
761
767
  )
762
768
 
@@ -1342,10 +1348,11 @@ func (MessageAddOn_MessageAddOnType) EnumDescriptor() ([]byte, []int) {
1342
1348
  type GroupHistoryBundleInfo_ProcessState int32
1343
1349
 
1344
1350
  const (
1345
- GroupHistoryBundleInfo_NOT_INJECTED GroupHistoryBundleInfo_ProcessState = 0
1346
- GroupHistoryBundleInfo_INJECTED GroupHistoryBundleInfo_ProcessState = 1
1347
- GroupHistoryBundleInfo_INJECTED_PARTIAL GroupHistoryBundleInfo_ProcessState = 2
1348
- GroupHistoryBundleInfo_INJECTION_FAILED GroupHistoryBundleInfo_ProcessState = 3
1351
+ GroupHistoryBundleInfo_NOT_INJECTED GroupHistoryBundleInfo_ProcessState = 0
1352
+ GroupHistoryBundleInfo_INJECTED GroupHistoryBundleInfo_ProcessState = 1
1353
+ GroupHistoryBundleInfo_INJECTED_PARTIAL GroupHistoryBundleInfo_ProcessState = 2
1354
+ GroupHistoryBundleInfo_INJECTION_FAILED GroupHistoryBundleInfo_ProcessState = 3
1355
+ GroupHistoryBundleInfo_INJECTION_FAILED_NO_RETRY GroupHistoryBundleInfo_ProcessState = 4
1349
1356
  )
1350
1357
 
1351
1358
  // Enum value maps for GroupHistoryBundleInfo_ProcessState.
@@ -1355,12 +1362,14 @@ var (
1355
1362
  1: "INJECTED",
1356
1363
  2: "INJECTED_PARTIAL",
1357
1364
  3: "INJECTION_FAILED",
1365
+ 4: "INJECTION_FAILED_NO_RETRY",
1358
1366
  }
1359
1367
  GroupHistoryBundleInfo_ProcessState_value = map[string]int32{
1360
- "NOT_INJECTED": 0,
1361
- "INJECTED": 1,
1362
- "INJECTED_PARTIAL": 2,
1363
- "INJECTION_FAILED": 3,
1368
+ "NOT_INJECTED": 0,
1369
+ "INJECTED": 1,
1370
+ "INJECTED_PARTIAL": 2,
1371
+ "INJECTION_FAILED": 3,
1372
+ "INJECTION_FAILED_NO_RETRY": 4,
1364
1373
  }
1365
1374
  )
1366
1375
 
@@ -1468,6 +1477,7 @@ type WebMessageInfo struct {
1468
1477
  GroupHistoryIndividualMessageInfo *GroupHistoryIndividualMessageInfo `protobuf:"bytes,74,opt,name=groupHistoryIndividualMessageInfo" json:"groupHistoryIndividualMessageInfo,omitempty"`
1469
1478
  GroupHistoryBundleInfo *GroupHistoryBundleInfo `protobuf:"bytes,75,opt,name=groupHistoryBundleInfo" json:"groupHistoryBundleInfo,omitempty"`
1470
1479
  InteractiveMessageAdditionalMetadata *InteractiveMessageAdditionalMetadata `protobuf:"bytes,76,opt,name=interactiveMessageAdditionalMetadata" json:"interactiveMessageAdditionalMetadata,omitempty"`
1480
+ QuarantinedMessage *QuarantinedMessage `protobuf:"bytes,77,opt,name=quarantinedMessage" json:"quarantinedMessage,omitempty"`
1471
1481
  unknownFields protoimpl.UnknownFields
1472
1482
  sizeCache protoimpl.SizeCache
1473
1483
  }
@@ -1957,6 +1967,13 @@ func (x *WebMessageInfo) GetInteractiveMessageAdditionalMetadata() *InteractiveM
1957
1967
  return nil
1958
1968
  }
1959
1969
 
1970
+ func (x *WebMessageInfo) GetQuarantinedMessage() *QuarantinedMessage {
1971
+ if x != nil {
1972
+ return x.QuarantinedMessage
1973
+ }
1974
+ return nil
1975
+ }
1976
+
1960
1977
  type PaymentInfo struct {
1961
1978
  state protoimpl.MessageState `protogen:"open.v1"`
1962
1979
  CurrencyDeprecated *PaymentInfo_Currency `protobuf:"varint,1,opt,name=currencyDeprecated,enum=WAWebProtobufsWeb.PaymentInfo_Currency" json:"currencyDeprecated,omitempty"`
@@ -3941,11 +3958,63 @@ func (x *GroupHistoryIndividualMessageInfo) GetEditedAfterReceivedAsHistory() bo
3941
3958
  return false
3942
3959
  }
3943
3960
 
3961
+ type QuarantinedMessage struct {
3962
+ state protoimpl.MessageState `protogen:"open.v1"`
3963
+ OriginalData []byte `protobuf:"bytes,1,opt,name=originalData" json:"originalData,omitempty"`
3964
+ ExtractedText *string `protobuf:"bytes,2,opt,name=extractedText" json:"extractedText,omitempty"`
3965
+ unknownFields protoimpl.UnknownFields
3966
+ sizeCache protoimpl.SizeCache
3967
+ }
3968
+
3969
+ func (x *QuarantinedMessage) Reset() {
3970
+ *x = QuarantinedMessage{}
3971
+ mi := &file_waWeb_WAWebProtobufsWeb_proto_msgTypes[27]
3972
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
3973
+ ms.StoreMessageInfo(mi)
3974
+ }
3975
+
3976
+ func (x *QuarantinedMessage) String() string {
3977
+ return protoimpl.X.MessageStringOf(x)
3978
+ }
3979
+
3980
+ func (*QuarantinedMessage) ProtoMessage() {}
3981
+
3982
+ func (x *QuarantinedMessage) ProtoReflect() protoreflect.Message {
3983
+ mi := &file_waWeb_WAWebProtobufsWeb_proto_msgTypes[27]
3984
+ if x != nil {
3985
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
3986
+ if ms.LoadMessageInfo() == nil {
3987
+ ms.StoreMessageInfo(mi)
3988
+ }
3989
+ return ms
3990
+ }
3991
+ return mi.MessageOf(x)
3992
+ }
3993
+
3994
+ // Deprecated: Use QuarantinedMessage.ProtoReflect.Descriptor instead.
3995
+ func (*QuarantinedMessage) Descriptor() ([]byte, []int) {
3996
+ return file_waWeb_WAWebProtobufsWeb_proto_rawDescGZIP(), []int{27}
3997
+ }
3998
+
3999
+ func (x *QuarantinedMessage) GetOriginalData() []byte {
4000
+ if x != nil {
4001
+ return x.OriginalData
4002
+ }
4003
+ return nil
4004
+ }
4005
+
4006
+ func (x *QuarantinedMessage) GetExtractedText() string {
4007
+ if x != nil && x.ExtractedText != nil {
4008
+ return *x.ExtractedText
4009
+ }
4010
+ return ""
4011
+ }
4012
+
3944
4013
  var File_waWeb_WAWebProtobufsWeb_proto protoreflect.FileDescriptor
3945
4014
 
3946
4015
  const file_waWeb_WAWebProtobufsWeb_proto_rawDesc = "" +
3947
4016
  "\n" +
3948
- "\x1dwaWeb/WAWebProtobufsWeb.proto\x12\x11WAWebProtobufsWeb\x1a\x1dwaE2E/WAWebProtobufsE2E.proto\x1a\x17waCommon/WACommon.proto\"\xf0Y\n" +
4017
+ "\x1dwaWeb/WAWebProtobufsWeb.proto\x12\x11WAWebProtobufsWeb\x1a\x1dwaE2E/WAWebProtobufsE2E.proto\x1a\x17waCommon/WACommon.proto\"\x8d[\n" +
3949
4018
  "\x0eWebMessageInfo\x12&\n" +
3950
4019
  "\x03key\x18\x01 \x02(\v2\x14.WACommon.MessageKeyR\x03key\x124\n" +
3951
4020
  "\amessage\x18\x02 \x01(\v2\x1a.WAWebProtobufsE2E.MessageR\amessage\x12*\n" +
@@ -4015,13 +4084,14 @@ const file_waWeb_WAWebProtobufsWeb_proto_rawDesc = "" +
4015
4084
  "\vbotTargetID\x18I \x01(\tR\vbotTargetID\x12\x82\x01\n" +
4016
4085
  "!groupHistoryIndividualMessageInfo\x18J \x01(\v24.WAWebProtobufsWeb.GroupHistoryIndividualMessageInfoR!groupHistoryIndividualMessageInfo\x12a\n" +
4017
4086
  "\x16groupHistoryBundleInfo\x18K \x01(\v2).WAWebProtobufsWeb.GroupHistoryBundleInfoR\x16groupHistoryBundleInfo\x12\x8b\x01\n" +
4018
- "$interactiveMessageAdditionalMetadata\x18L \x01(\v27.WAWebProtobufsWeb.InteractiveMessageAdditionalMetadataR$interactiveMessageAdditionalMetadata\"=\n" +
4087
+ "$interactiveMessageAdditionalMetadata\x18L \x01(\v27.WAWebProtobufsWeb.InteractiveMessageAdditionalMetadataR$interactiveMessageAdditionalMetadata\x12U\n" +
4088
+ "\x12quarantinedMessage\x18M \x01(\v2%.WAWebProtobufsWeb.QuarantinedMessageR\x12quarantinedMessage\"=\n" +
4019
4089
  "\x10BizPrivacyStatus\x12\b\n" +
4020
4090
  "\x04E2EE\x10\x00\x12\x06\n" +
4021
4091
  "\x02FB\x10\x02\x12\a\n" +
4022
4092
  "\x03BSP\x10\x01\x12\x0e\n" +
4023
4093
  "\n" +
4024
- "BSP_AND_FB\x10\x03\"\xd5:\n" +
4094
+ "BSP_AND_FB\x10\x03\"\x9b;\n" +
4025
4095
  "\bStubType\x12\v\n" +
4026
4096
  "\aUNKNOWN\x10\x00\x12\n" +
4027
4097
  "\n" +
@@ -4246,7 +4316,9 @@ const file_waWeb_WAWebProtobufsWeb_proto_rawDesc = "" +
4246
4316
  "\x14CHANGE_LIMIT_SHARING\x10\xd8\x01\x12\x1b\n" +
4247
4317
  "\x16GROUP_MEMBER_LINK_MODE\x10\xd9\x01\x122\n" +
4248
4318
  "-BIZ_AUTOMATICALLY_LABELED_CHAT_SYSTEM_MESSAGE\x10\xda\x01\x120\n" +
4249
- "+PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE\x10\xdb\x01\"X\n" +
4319
+ "+PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE\x10\xdb\x01\x12\x18\n" +
4320
+ "\x13QUARANTINED_MESSAGE\x10\xdc\x01\x12*\n" +
4321
+ "%GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE\x10\xdd\x01\"X\n" +
4250
4322
  "\x06Status\x12\t\n" +
4251
4323
  "\x05ERROR\x10\x00\x12\v\n" +
4252
4324
  "\aPENDING\x10\x01\x12\x0e\n" +
@@ -4409,15 +4481,16 @@ const file_waWeb_WAWebProtobufsWeb_proto_rawDesc = "" +
4409
4481
  "\bREACTION\x10\x01\x12\x12\n" +
4410
4482
  "\x0eEVENT_RESPONSE\x10\x02\x12\x0f\n" +
4411
4483
  "\vPOLL_UPDATE\x10\x03\x12\x0f\n" +
4412
- "\vPIN_IN_CHAT\x10\x04\"\xc1\x02\n" +
4484
+ "\vPIN_IN_CHAT\x10\x04\"\xe0\x02\n" +
4413
4485
  "\x16GroupHistoryBundleInfo\x12o\n" +
4414
4486
  "\x1edeprecatedMessageHistoryBundle\x18\x01 \x01(\v2'.WAWebProtobufsE2E.MessageHistoryBundleR\x1edeprecatedMessageHistoryBundle\x12Z\n" +
4415
- "\fprocessState\x18\x02 \x01(\x0e26.WAWebProtobufsWeb.GroupHistoryBundleInfo.ProcessStateR\fprocessState\"Z\n" +
4487
+ "\fprocessState\x18\x02 \x01(\x0e26.WAWebProtobufsWeb.GroupHistoryBundleInfo.ProcessStateR\fprocessState\"y\n" +
4416
4488
  "\fProcessState\x12\x10\n" +
4417
4489
  "\fNOT_INJECTED\x10\x00\x12\f\n" +
4418
4490
  "\bINJECTED\x10\x01\x12\x14\n" +
4419
4491
  "\x10INJECTED_PARTIAL\x10\x02\x12\x14\n" +
4420
- "\x10INJECTION_FAILED\x10\x03\"s\n" +
4492
+ "\x10INJECTION_FAILED\x10\x03\x12\x1d\n" +
4493
+ "\x19INJECTION_FAILED_NO_RETRY\x10\x04\"s\n" +
4421
4494
  "\x0fCommentMetadata\x12@\n" +
4422
4495
  "\x10commentParentKey\x18\x01 \x01(\v2\x14.WACommon.MessageKeyR\x10commentParentKey\x12\x1e\n" +
4423
4496
  "\n" +
@@ -4504,7 +4577,10 @@ const file_waWeb_WAWebProtobufsWeb_proto_rawDesc = "" +
4504
4577
  "\bimageURL\x18\x04 \x02(\tR\bimageURL\"\xa9\x01\n" +
4505
4578
  "!GroupHistoryIndividualMessageInfo\x12@\n" +
4506
4579
  "\x10bundleMessageKey\x18\x01 \x01(\v2\x14.WACommon.MessageKeyR\x10bundleMessageKey\x12B\n" +
4507
- "\x1ceditedAfterReceivedAsHistory\x18\x02 \x01(\bR\x1ceditedAfterReceivedAsHistoryB!Z\x1fgo.mau.fi/whatsmeow/proto/waWeb"
4580
+ "\x1ceditedAfterReceivedAsHistory\x18\x02 \x01(\bR\x1ceditedAfterReceivedAsHistory\"^\n" +
4581
+ "\x12QuarantinedMessage\x12\"\n" +
4582
+ "\foriginalData\x18\x01 \x01(\fR\foriginalData\x12$\n" +
4583
+ "\rextractedText\x18\x02 \x01(\tR\rextractedTextB!Z\x1fgo.mau.fi/whatsmeow/proto/waWeb"
4508
4584
 
4509
4585
  var (
4510
4586
  file_waWeb_WAWebProtobufsWeb_proto_rawDescOnce sync.Once
@@ -4519,7 +4595,7 @@ func file_waWeb_WAWebProtobufsWeb_proto_rawDescGZIP() []byte {
4519
4595
  }
4520
4596
 
4521
4597
  var file_waWeb_WAWebProtobufsWeb_proto_enumTypes = make([]protoimpl.EnumInfo, 10)
4522
- var file_waWeb_WAWebProtobufsWeb_proto_msgTypes = make([]protoimpl.MessageInfo, 27)
4598
+ var file_waWeb_WAWebProtobufsWeb_proto_msgTypes = make([]protoimpl.MessageInfo, 28)
4523
4599
  var file_waWeb_WAWebProtobufsWeb_proto_goTypes = []any{
4524
4600
  (WebMessageInfo_BizPrivacyStatus)(0), // 0: WAWebProtobufsWeb.WebMessageInfo.BizPrivacyStatus
4525
4601
  (WebMessageInfo_StubType)(0), // 1: WAWebProtobufsWeb.WebMessageInfo.StubType
@@ -4558,23 +4634,24 @@ var file_waWeb_WAWebProtobufsWeb_proto_goTypes = []any{
4558
4634
  (*StatusMentionMessage)(nil), // 34: WAWebProtobufsWeb.StatusMentionMessage
4559
4635
  (*Citation)(nil), // 35: WAWebProtobufsWeb.Citation
4560
4636
  (*GroupHistoryIndividualMessageInfo)(nil), // 36: WAWebProtobufsWeb.GroupHistoryIndividualMessageInfo
4561
- (*waCommon.MessageKey)(nil), // 37: WACommon.MessageKey
4562
- (*waE2E.Message)(nil), // 38: WAWebProtobufsE2E.Message
4563
- (*waE2E.LiveLocationMessage)(nil), // 39: WAWebProtobufsE2E.LiveLocationMessage
4564
- (*waE2E.Money)(nil), // 40: WAWebProtobufsE2E.Money
4565
- (*waE2E.MessageHistoryBundle)(nil), // 41: WAWebProtobufsE2E.MessageHistoryBundle
4566
- (*waE2E.PollVoteMessage)(nil), // 42: WAWebProtobufsE2E.PollVoteMessage
4567
- (waE2E.KeepType)(0), // 43: WAWebProtobufsE2E.KeepType
4568
- (waE2E.MessageContextInfo_MessageAddonExpiryType)(0), // 44: WAWebProtobufsE2E.MessageContextInfo.MessageAddonExpiryType
4569
- (*waE2E.EventResponseMessage)(nil), // 45: WAWebProtobufsE2E.EventResponseMessage
4637
+ (*QuarantinedMessage)(nil), // 37: WAWebProtobufsWeb.QuarantinedMessage
4638
+ (*waCommon.MessageKey)(nil), // 38: WACommon.MessageKey
4639
+ (*waE2E.Message)(nil), // 39: WAWebProtobufsE2E.Message
4640
+ (*waE2E.LiveLocationMessage)(nil), // 40: WAWebProtobufsE2E.LiveLocationMessage
4641
+ (*waE2E.Money)(nil), // 41: WAWebProtobufsE2E.Money
4642
+ (*waE2E.MessageHistoryBundle)(nil), // 42: WAWebProtobufsE2E.MessageHistoryBundle
4643
+ (*waE2E.PollVoteMessage)(nil), // 43: WAWebProtobufsE2E.PollVoteMessage
4644
+ (waE2E.KeepType)(0), // 44: WAWebProtobufsE2E.KeepType
4645
+ (waE2E.MessageContextInfo_MessageAddonExpiryType)(0), // 45: WAWebProtobufsE2E.MessageContextInfo.MessageAddonExpiryType
4646
+ (*waE2E.EventResponseMessage)(nil), // 46: WAWebProtobufsE2E.EventResponseMessage
4570
4647
  }
4571
4648
  var file_waWeb_WAWebProtobufsWeb_proto_depIdxs = []int32{
4572
- 37, // 0: WAWebProtobufsWeb.WebMessageInfo.key:type_name -> WACommon.MessageKey
4573
- 38, // 1: WAWebProtobufsWeb.WebMessageInfo.message:type_name -> WAWebProtobufsE2E.Message
4649
+ 38, // 0: WAWebProtobufsWeb.WebMessageInfo.key:type_name -> WACommon.MessageKey
4650
+ 39, // 1: WAWebProtobufsWeb.WebMessageInfo.message:type_name -> WAWebProtobufsE2E.Message
4574
4651
  2, // 2: WAWebProtobufsWeb.WebMessageInfo.status:type_name -> WAWebProtobufsWeb.WebMessageInfo.Status
4575
4652
  1, // 3: WAWebProtobufsWeb.WebMessageInfo.messageStubType:type_name -> WAWebProtobufsWeb.WebMessageInfo.StubType
4576
4653
  11, // 4: WAWebProtobufsWeb.WebMessageInfo.paymentInfo:type_name -> WAWebProtobufsWeb.PaymentInfo
4577
- 39, // 5: WAWebProtobufsWeb.WebMessageInfo.finalLiveLocation:type_name -> WAWebProtobufsE2E.LiveLocationMessage
4654
+ 40, // 5: WAWebProtobufsWeb.WebMessageInfo.finalLiveLocation:type_name -> WAWebProtobufsE2E.LiveLocationMessage
4578
4655
  11, // 6: WAWebProtobufsWeb.WebMessageInfo.quotedPaymentInfo:type_name -> WAWebProtobufsWeb.PaymentInfo
4579
4656
  0, // 7: WAWebProtobufsWeb.WebMessageInfo.bizPrivacyStatus:type_name -> WAWebProtobufsWeb.WebMessageInfo.BizPrivacyStatus
4580
4657
  20, // 8: WAWebProtobufsWeb.WebMessageInfo.mediaData:type_name -> WAWebProtobufsWeb.MediaData
@@ -4592,96 +4669,97 @@ var file_waWeb_WAWebProtobufsWeb_proto_depIdxs = []int32{
4592
4669
  32, // 20: WAWebProtobufsWeb.WebMessageInfo.eventResponses:type_name -> WAWebProtobufsWeb.EventResponse
4593
4670
  19, // 21: WAWebProtobufsWeb.WebMessageInfo.reportingTokenInfo:type_name -> WAWebProtobufsWeb.ReportingTokenInfo
4594
4671
  28, // 22: WAWebProtobufsWeb.WebMessageInfo.eventAdditionalMetadata:type_name -> WAWebProtobufsWeb.EventAdditionalMetadata
4595
- 37, // 23: WAWebProtobufsWeb.WebMessageInfo.targetMessageID:type_name -> WACommon.MessageKey
4672
+ 38, // 23: WAWebProtobufsWeb.WebMessageInfo.targetMessageID:type_name -> WACommon.MessageKey
4596
4673
  14, // 24: WAWebProtobufsWeb.WebMessageInfo.messageAddOns:type_name -> WAWebProtobufsWeb.MessageAddOn
4597
4674
  34, // 25: WAWebProtobufsWeb.WebMessageInfo.statusMentionMessageInfo:type_name -> WAWebProtobufsWeb.StatusMentionMessage
4598
4675
  35, // 26: WAWebProtobufsWeb.WebMessageInfo.supportAiCitations:type_name -> WAWebProtobufsWeb.Citation
4599
4676
  36, // 27: WAWebProtobufsWeb.WebMessageInfo.groupHistoryIndividualMessageInfo:type_name -> WAWebProtobufsWeb.GroupHistoryIndividualMessageInfo
4600
4677
  15, // 28: WAWebProtobufsWeb.WebMessageInfo.groupHistoryBundleInfo:type_name -> WAWebProtobufsWeb.GroupHistoryBundleInfo
4601
4678
  27, // 29: WAWebProtobufsWeb.WebMessageInfo.interactiveMessageAdditionalMetadata:type_name -> WAWebProtobufsWeb.InteractiveMessageAdditionalMetadata
4602
- 5, // 30: WAWebProtobufsWeb.PaymentInfo.currencyDeprecated:type_name -> WAWebProtobufsWeb.PaymentInfo.Currency
4603
- 4, // 31: WAWebProtobufsWeb.PaymentInfo.status:type_name -> WAWebProtobufsWeb.PaymentInfo.Status
4604
- 37, // 32: WAWebProtobufsWeb.PaymentInfo.requestMessageKey:type_name -> WACommon.MessageKey
4605
- 3, // 33: WAWebProtobufsWeb.PaymentInfo.txnStatus:type_name -> WAWebProtobufsWeb.PaymentInfo.TxnStatus
4606
- 40, // 34: WAWebProtobufsWeb.PaymentInfo.primaryAmount:type_name -> WAWebProtobufsE2E.Money
4607
- 40, // 35: WAWebProtobufsWeb.PaymentInfo.exchangeAmount:type_name -> WAWebProtobufsE2E.Money
4608
- 6, // 36: WAWebProtobufsWeb.WebFeatures.labelsDisplay:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4609
- 6, // 37: WAWebProtobufsWeb.WebFeatures.voipIndividualOutgoing:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4610
- 6, // 38: WAWebProtobufsWeb.WebFeatures.groupsV3:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4611
- 6, // 39: WAWebProtobufsWeb.WebFeatures.groupsV3Create:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4612
- 6, // 40: WAWebProtobufsWeb.WebFeatures.changeNumberV2:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4613
- 6, // 41: WAWebProtobufsWeb.WebFeatures.queryStatusV3Thumbnail:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4614
- 6, // 42: WAWebProtobufsWeb.WebFeatures.liveLocations:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4615
- 6, // 43: WAWebProtobufsWeb.WebFeatures.queryVname:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4616
- 6, // 44: WAWebProtobufsWeb.WebFeatures.voipIndividualIncoming:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4617
- 6, // 45: WAWebProtobufsWeb.WebFeatures.quickRepliesQuery:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4618
- 6, // 46: WAWebProtobufsWeb.WebFeatures.payments:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4619
- 6, // 47: WAWebProtobufsWeb.WebFeatures.stickerPackQuery:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4620
- 6, // 48: WAWebProtobufsWeb.WebFeatures.liveLocationsFinal:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4621
- 6, // 49: WAWebProtobufsWeb.WebFeatures.labelsEdit:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4622
- 6, // 50: WAWebProtobufsWeb.WebFeatures.mediaUpload:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4623
- 6, // 51: WAWebProtobufsWeb.WebFeatures.mediaUploadRichQuickReplies:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4624
- 6, // 52: WAWebProtobufsWeb.WebFeatures.vnameV2:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4625
- 6, // 53: WAWebProtobufsWeb.WebFeatures.videoPlaybackURL:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4626
- 6, // 54: WAWebProtobufsWeb.WebFeatures.statusRanking:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4627
- 6, // 55: WAWebProtobufsWeb.WebFeatures.voipIndividualVideo:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4628
- 6, // 56: WAWebProtobufsWeb.WebFeatures.thirdPartyStickers:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4629
- 6, // 57: WAWebProtobufsWeb.WebFeatures.frequentlyForwardedSetting:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4630
- 6, // 58: WAWebProtobufsWeb.WebFeatures.groupsV4JoinPermission:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4631
- 6, // 59: WAWebProtobufsWeb.WebFeatures.recentStickers:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4632
- 6, // 60: WAWebProtobufsWeb.WebFeatures.catalog:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4633
- 6, // 61: WAWebProtobufsWeb.WebFeatures.starredStickers:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4634
- 6, // 62: WAWebProtobufsWeb.WebFeatures.voipGroupCall:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4635
- 6, // 63: WAWebProtobufsWeb.WebFeatures.templateMessage:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4636
- 6, // 64: WAWebProtobufsWeb.WebFeatures.templateMessageInteractivity:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4637
- 6, // 65: WAWebProtobufsWeb.WebFeatures.ephemeralMessages:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4638
- 6, // 66: WAWebProtobufsWeb.WebFeatures.e2ENotificationSync:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4639
- 6, // 67: WAWebProtobufsWeb.WebFeatures.recentStickersV2:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4640
- 6, // 68: WAWebProtobufsWeb.WebFeatures.recentStickersV3:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4641
- 6, // 69: WAWebProtobufsWeb.WebFeatures.userNotice:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4642
- 6, // 70: WAWebProtobufsWeb.WebFeatures.support:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4643
- 6, // 71: WAWebProtobufsWeb.WebFeatures.groupUiiCleanup:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4644
- 6, // 72: WAWebProtobufsWeb.WebFeatures.groupDogfoodingInternalOnly:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4645
- 6, // 73: WAWebProtobufsWeb.WebFeatures.settingsSync:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4646
- 6, // 74: WAWebProtobufsWeb.WebFeatures.archiveV2:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4647
- 6, // 75: WAWebProtobufsWeb.WebFeatures.ephemeralAllowGroupMembers:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4648
- 6, // 76: WAWebProtobufsWeb.WebFeatures.ephemeral24HDuration:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4649
- 6, // 77: WAWebProtobufsWeb.WebFeatures.mdForceUpgrade:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4650
- 6, // 78: WAWebProtobufsWeb.WebFeatures.disappearingMode:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4651
- 6, // 79: WAWebProtobufsWeb.WebFeatures.externalMdOptInAvailable:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4652
- 6, // 80: WAWebProtobufsWeb.WebFeatures.noDeleteMessageTimeLimit:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4653
- 7, // 81: WAWebProtobufsWeb.PinInChat.type:type_name -> WAWebProtobufsWeb.PinInChat.Type
4654
- 37, // 82: WAWebProtobufsWeb.PinInChat.key:type_name -> WACommon.MessageKey
4655
- 30, // 83: WAWebProtobufsWeb.PinInChat.messageAddOnContextInfo:type_name -> WAWebProtobufsWeb.MessageAddOnContextInfo
4656
- 8, // 84: WAWebProtobufsWeb.MessageAddOn.messageAddOnType:type_name -> WAWebProtobufsWeb.MessageAddOn.MessageAddOnType
4657
- 38, // 85: WAWebProtobufsWeb.MessageAddOn.messageAddOn:type_name -> WAWebProtobufsE2E.Message
4658
- 2, // 86: WAWebProtobufsWeb.MessageAddOn.status:type_name -> WAWebProtobufsWeb.WebMessageInfo.Status
4659
- 30, // 87: WAWebProtobufsWeb.MessageAddOn.addOnContextInfo:type_name -> WAWebProtobufsWeb.MessageAddOnContextInfo
4660
- 37, // 88: WAWebProtobufsWeb.MessageAddOn.messageAddOnKey:type_name -> WACommon.MessageKey
4661
- 33, // 89: WAWebProtobufsWeb.MessageAddOn.legacyMessage:type_name -> WAWebProtobufsWeb.LegacyMessage
4662
- 41, // 90: WAWebProtobufsWeb.GroupHistoryBundleInfo.deprecatedMessageHistoryBundle:type_name -> WAWebProtobufsE2E.MessageHistoryBundle
4663
- 9, // 91: WAWebProtobufsWeb.GroupHistoryBundleInfo.processState:type_name -> WAWebProtobufsWeb.GroupHistoryBundleInfo.ProcessState
4664
- 37, // 92: WAWebProtobufsWeb.CommentMetadata.commentParentKey:type_name -> WACommon.MessageKey
4665
- 10, // 93: WAWebProtobufsWeb.WebNotificationsInfo.notifyMessages:type_name -> WAWebProtobufsWeb.WebMessageInfo
4666
- 37, // 94: WAWebProtobufsWeb.NotificationMessageInfo.key:type_name -> WACommon.MessageKey
4667
- 38, // 95: WAWebProtobufsWeb.NotificationMessageInfo.message:type_name -> WAWebProtobufsE2E.Message
4668
- 37, // 96: WAWebProtobufsWeb.Reaction.key:type_name -> WACommon.MessageKey
4669
- 37, // 97: WAWebProtobufsWeb.PollUpdate.pollUpdateMessageKey:type_name -> WACommon.MessageKey
4670
- 42, // 98: WAWebProtobufsWeb.PollUpdate.vote:type_name -> WAWebProtobufsE2E.PollVoteMessage
4671
- 43, // 99: WAWebProtobufsWeb.KeepInChat.keepType:type_name -> WAWebProtobufsE2E.KeepType
4672
- 37, // 100: WAWebProtobufsWeb.KeepInChat.key:type_name -> WACommon.MessageKey
4673
- 44, // 101: WAWebProtobufsWeb.MessageAddOnContextInfo.messageAddOnExpiryType:type_name -> WAWebProtobufsE2E.MessageContextInfo.MessageAddonExpiryType
4674
- 37, // 102: WAWebProtobufsWeb.EventResponse.eventResponseMessageKey:type_name -> WACommon.MessageKey
4675
- 45, // 103: WAWebProtobufsWeb.EventResponse.eventResponseMessage:type_name -> WAWebProtobufsE2E.EventResponseMessage
4676
- 45, // 104: WAWebProtobufsWeb.LegacyMessage.eventResponseMessage:type_name -> WAWebProtobufsE2E.EventResponseMessage
4677
- 42, // 105: WAWebProtobufsWeb.LegacyMessage.pollVote:type_name -> WAWebProtobufsE2E.PollVoteMessage
4678
- 38, // 106: WAWebProtobufsWeb.StatusMentionMessage.quotedStatus:type_name -> WAWebProtobufsE2E.Message
4679
- 37, // 107: WAWebProtobufsWeb.GroupHistoryIndividualMessageInfo.bundleMessageKey:type_name -> WACommon.MessageKey
4680
- 108, // [108:108] is the sub-list for method output_type
4681
- 108, // [108:108] is the sub-list for method input_type
4682
- 108, // [108:108] is the sub-list for extension type_name
4683
- 108, // [108:108] is the sub-list for extension extendee
4684
- 0, // [0:108] is the sub-list for field type_name
4679
+ 37, // 30: WAWebProtobufsWeb.WebMessageInfo.quarantinedMessage:type_name -> WAWebProtobufsWeb.QuarantinedMessage
4680
+ 5, // 31: WAWebProtobufsWeb.PaymentInfo.currencyDeprecated:type_name -> WAWebProtobufsWeb.PaymentInfo.Currency
4681
+ 4, // 32: WAWebProtobufsWeb.PaymentInfo.status:type_name -> WAWebProtobufsWeb.PaymentInfo.Status
4682
+ 38, // 33: WAWebProtobufsWeb.PaymentInfo.requestMessageKey:type_name -> WACommon.MessageKey
4683
+ 3, // 34: WAWebProtobufsWeb.PaymentInfo.txnStatus:type_name -> WAWebProtobufsWeb.PaymentInfo.TxnStatus
4684
+ 41, // 35: WAWebProtobufsWeb.PaymentInfo.primaryAmount:type_name -> WAWebProtobufsE2E.Money
4685
+ 41, // 36: WAWebProtobufsWeb.PaymentInfo.exchangeAmount:type_name -> WAWebProtobufsE2E.Money
4686
+ 6, // 37: WAWebProtobufsWeb.WebFeatures.labelsDisplay:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4687
+ 6, // 38: WAWebProtobufsWeb.WebFeatures.voipIndividualOutgoing:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4688
+ 6, // 39: WAWebProtobufsWeb.WebFeatures.groupsV3:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4689
+ 6, // 40: WAWebProtobufsWeb.WebFeatures.groupsV3Create:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4690
+ 6, // 41: WAWebProtobufsWeb.WebFeatures.changeNumberV2:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4691
+ 6, // 42: WAWebProtobufsWeb.WebFeatures.queryStatusV3Thumbnail:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4692
+ 6, // 43: WAWebProtobufsWeb.WebFeatures.liveLocations:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4693
+ 6, // 44: WAWebProtobufsWeb.WebFeatures.queryVname:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4694
+ 6, // 45: WAWebProtobufsWeb.WebFeatures.voipIndividualIncoming:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4695
+ 6, // 46: WAWebProtobufsWeb.WebFeatures.quickRepliesQuery:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4696
+ 6, // 47: WAWebProtobufsWeb.WebFeatures.payments:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4697
+ 6, // 48: WAWebProtobufsWeb.WebFeatures.stickerPackQuery:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4698
+ 6, // 49: WAWebProtobufsWeb.WebFeatures.liveLocationsFinal:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4699
+ 6, // 50: WAWebProtobufsWeb.WebFeatures.labelsEdit:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4700
+ 6, // 51: WAWebProtobufsWeb.WebFeatures.mediaUpload:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4701
+ 6, // 52: WAWebProtobufsWeb.WebFeatures.mediaUploadRichQuickReplies:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4702
+ 6, // 53: WAWebProtobufsWeb.WebFeatures.vnameV2:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4703
+ 6, // 54: WAWebProtobufsWeb.WebFeatures.videoPlaybackURL:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4704
+ 6, // 55: WAWebProtobufsWeb.WebFeatures.statusRanking:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4705
+ 6, // 56: WAWebProtobufsWeb.WebFeatures.voipIndividualVideo:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4706
+ 6, // 57: WAWebProtobufsWeb.WebFeatures.thirdPartyStickers:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4707
+ 6, // 58: WAWebProtobufsWeb.WebFeatures.frequentlyForwardedSetting:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4708
+ 6, // 59: WAWebProtobufsWeb.WebFeatures.groupsV4JoinPermission:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4709
+ 6, // 60: WAWebProtobufsWeb.WebFeatures.recentStickers:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4710
+ 6, // 61: WAWebProtobufsWeb.WebFeatures.catalog:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4711
+ 6, // 62: WAWebProtobufsWeb.WebFeatures.starredStickers:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4712
+ 6, // 63: WAWebProtobufsWeb.WebFeatures.voipGroupCall:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4713
+ 6, // 64: WAWebProtobufsWeb.WebFeatures.templateMessage:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4714
+ 6, // 65: WAWebProtobufsWeb.WebFeatures.templateMessageInteractivity:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4715
+ 6, // 66: WAWebProtobufsWeb.WebFeatures.ephemeralMessages:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4716
+ 6, // 67: WAWebProtobufsWeb.WebFeatures.e2ENotificationSync:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4717
+ 6, // 68: WAWebProtobufsWeb.WebFeatures.recentStickersV2:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4718
+ 6, // 69: WAWebProtobufsWeb.WebFeatures.recentStickersV3:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4719
+ 6, // 70: WAWebProtobufsWeb.WebFeatures.userNotice:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4720
+ 6, // 71: WAWebProtobufsWeb.WebFeatures.support:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4721
+ 6, // 72: WAWebProtobufsWeb.WebFeatures.groupUiiCleanup:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4722
+ 6, // 73: WAWebProtobufsWeb.WebFeatures.groupDogfoodingInternalOnly:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4723
+ 6, // 74: WAWebProtobufsWeb.WebFeatures.settingsSync:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4724
+ 6, // 75: WAWebProtobufsWeb.WebFeatures.archiveV2:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4725
+ 6, // 76: WAWebProtobufsWeb.WebFeatures.ephemeralAllowGroupMembers:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4726
+ 6, // 77: WAWebProtobufsWeb.WebFeatures.ephemeral24HDuration:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4727
+ 6, // 78: WAWebProtobufsWeb.WebFeatures.mdForceUpgrade:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4728
+ 6, // 79: WAWebProtobufsWeb.WebFeatures.disappearingMode:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4729
+ 6, // 80: WAWebProtobufsWeb.WebFeatures.externalMdOptInAvailable:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4730
+ 6, // 81: WAWebProtobufsWeb.WebFeatures.noDeleteMessageTimeLimit:type_name -> WAWebProtobufsWeb.WebFeatures.Flag
4731
+ 7, // 82: WAWebProtobufsWeb.PinInChat.type:type_name -> WAWebProtobufsWeb.PinInChat.Type
4732
+ 38, // 83: WAWebProtobufsWeb.PinInChat.key:type_name -> WACommon.MessageKey
4733
+ 30, // 84: WAWebProtobufsWeb.PinInChat.messageAddOnContextInfo:type_name -> WAWebProtobufsWeb.MessageAddOnContextInfo
4734
+ 8, // 85: WAWebProtobufsWeb.MessageAddOn.messageAddOnType:type_name -> WAWebProtobufsWeb.MessageAddOn.MessageAddOnType
4735
+ 39, // 86: WAWebProtobufsWeb.MessageAddOn.messageAddOn:type_name -> WAWebProtobufsE2E.Message
4736
+ 2, // 87: WAWebProtobufsWeb.MessageAddOn.status:type_name -> WAWebProtobufsWeb.WebMessageInfo.Status
4737
+ 30, // 88: WAWebProtobufsWeb.MessageAddOn.addOnContextInfo:type_name -> WAWebProtobufsWeb.MessageAddOnContextInfo
4738
+ 38, // 89: WAWebProtobufsWeb.MessageAddOn.messageAddOnKey:type_name -> WACommon.MessageKey
4739
+ 33, // 90: WAWebProtobufsWeb.MessageAddOn.legacyMessage:type_name -> WAWebProtobufsWeb.LegacyMessage
4740
+ 42, // 91: WAWebProtobufsWeb.GroupHistoryBundleInfo.deprecatedMessageHistoryBundle:type_name -> WAWebProtobufsE2E.MessageHistoryBundle
4741
+ 9, // 92: WAWebProtobufsWeb.GroupHistoryBundleInfo.processState:type_name -> WAWebProtobufsWeb.GroupHistoryBundleInfo.ProcessState
4742
+ 38, // 93: WAWebProtobufsWeb.CommentMetadata.commentParentKey:type_name -> WACommon.MessageKey
4743
+ 10, // 94: WAWebProtobufsWeb.WebNotificationsInfo.notifyMessages:type_name -> WAWebProtobufsWeb.WebMessageInfo
4744
+ 38, // 95: WAWebProtobufsWeb.NotificationMessageInfo.key:type_name -> WACommon.MessageKey
4745
+ 39, // 96: WAWebProtobufsWeb.NotificationMessageInfo.message:type_name -> WAWebProtobufsE2E.Message
4746
+ 38, // 97: WAWebProtobufsWeb.Reaction.key:type_name -> WACommon.MessageKey
4747
+ 38, // 98: WAWebProtobufsWeb.PollUpdate.pollUpdateMessageKey:type_name -> WACommon.MessageKey
4748
+ 43, // 99: WAWebProtobufsWeb.PollUpdate.vote:type_name -> WAWebProtobufsE2E.PollVoteMessage
4749
+ 44, // 100: WAWebProtobufsWeb.KeepInChat.keepType:type_name -> WAWebProtobufsE2E.KeepType
4750
+ 38, // 101: WAWebProtobufsWeb.KeepInChat.key:type_name -> WACommon.MessageKey
4751
+ 45, // 102: WAWebProtobufsWeb.MessageAddOnContextInfo.messageAddOnExpiryType:type_name -> WAWebProtobufsE2E.MessageContextInfo.MessageAddonExpiryType
4752
+ 38, // 103: WAWebProtobufsWeb.EventResponse.eventResponseMessageKey:type_name -> WACommon.MessageKey
4753
+ 46, // 104: WAWebProtobufsWeb.EventResponse.eventResponseMessage:type_name -> WAWebProtobufsE2E.EventResponseMessage
4754
+ 46, // 105: WAWebProtobufsWeb.LegacyMessage.eventResponseMessage:type_name -> WAWebProtobufsE2E.EventResponseMessage
4755
+ 43, // 106: WAWebProtobufsWeb.LegacyMessage.pollVote:type_name -> WAWebProtobufsE2E.PollVoteMessage
4756
+ 39, // 107: WAWebProtobufsWeb.StatusMentionMessage.quotedStatus:type_name -> WAWebProtobufsE2E.Message
4757
+ 38, // 108: WAWebProtobufsWeb.GroupHistoryIndividualMessageInfo.bundleMessageKey:type_name -> WACommon.MessageKey
4758
+ 109, // [109:109] is the sub-list for method output_type
4759
+ 109, // [109:109] is the sub-list for method input_type
4760
+ 109, // [109:109] is the sub-list for extension type_name
4761
+ 109, // [109:109] is the sub-list for extension extendee
4762
+ 0, // [0:109] is the sub-list for field type_name
4685
4763
  }
4686
4764
 
4687
4765
  func init() { file_waWeb_WAWebProtobufsWeb_proto_init() }
@@ -4695,7 +4773,7 @@ func file_waWeb_WAWebProtobufsWeb_proto_init() {
4695
4773
  GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
4696
4774
  RawDescriptor: unsafe.Slice(unsafe.StringData(file_waWeb_WAWebProtobufsWeb_proto_rawDesc), len(file_waWeb_WAWebProtobufsWeb_proto_rawDesc)),
4697
4775
  NumEnums: 10,
4698
- NumMessages: 27,
4776
+ NumMessages: 28,
4699
4777
  NumExtensions: 0,
4700
4778
  NumServices: 0,
4701
4779
  },
@@ -234,6 +234,8 @@ message WebMessageInfo {
234
234
  GROUP_MEMBER_LINK_MODE = 217;
235
235
  BIZ_AUTOMATICALLY_LABELED_CHAT_SYSTEM_MESSAGE = 218;
236
236
  PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE = 219;
237
+ QUARANTINED_MESSAGE = 220;
238
+ GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE = 221;
237
239
  }
238
240
 
239
241
  enum Status {
@@ -310,6 +312,7 @@ message WebMessageInfo {
310
312
  optional GroupHistoryIndividualMessageInfo groupHistoryIndividualMessageInfo = 74;
311
313
  optional GroupHistoryBundleInfo groupHistoryBundleInfo = 75;
312
314
  optional InteractiveMessageAdditionalMetadata interactiveMessageAdditionalMetadata = 76;
315
+ optional QuarantinedMessage quarantinedMessage = 77;
313
316
  }
314
317
 
315
318
  message PaymentInfo {
@@ -477,6 +480,7 @@ message GroupHistoryBundleInfo {
477
480
  INJECTED = 1;
478
481
  INJECTED_PARTIAL = 2;
479
482
  INJECTION_FAILED = 3;
483
+ INJECTION_FAILED_NO_RETRY = 4;
480
484
  }
481
485
 
482
486
  optional WAWebProtobufsE2E.MessageHistoryBundle deprecatedMessageHistoryBundle = 1;
@@ -603,3 +607,8 @@ message GroupHistoryIndividualMessageInfo {
603
607
  optional WACommon.MessageKey bundleMessageKey = 1;
604
608
  optional bool editedAfterReceivedAsHistory = 2;
605
609
  }
610
+
611
+ message QuarantinedMessage {
612
+ optional bytes originalData = 1;
613
+ optional string extractedText = 2;
614
+ }
@@ -82,12 +82,11 @@ func (wpc *WebPushConfig) GetPushConfigAttrs() waBinary.Attrs {
82
82
  }
83
83
 
84
84
  func (cli *Client) GetServerPushNotificationConfig(ctx context.Context) (*waBinary.Node, error) {
85
- resp, err := cli.sendIQ(infoQuery{
85
+ resp, err := cli.sendIQ(ctx, infoQuery{
86
86
  Namespace: "urn:xmpp:whatsapp:push",
87
87
  Type: iqGet,
88
88
  To: types.ServerJID,
89
89
  Content: []waBinary.Node{{Tag: "settings"}},
90
- Context: ctx,
91
90
  })
92
91
  return resp, err
93
92
  }
@@ -96,7 +95,7 @@ func (cli *Client) GetServerPushNotificationConfig(ctx context.Context) (*waBina
96
95
  //
97
96
  // This is generally not necessary for anything. Don't use this if you don't know what you're doing.
98
97
  func (cli *Client) RegisterForPushNotifications(ctx context.Context, pc PushConfig) error {
99
- _, err := cli.sendIQ(infoQuery{
98
+ _, err := cli.sendIQ(ctx, infoQuery{
100
99
  Namespace: "urn:xmpp:whatsapp:push",
101
100
  Type: iqSet,
102
101
  To: types.ServerJID,
@@ -104,7 +103,6 @@ func (cli *Client) RegisterForPushNotifications(ctx context.Context, pc PushConf
104
103
  Tag: "config",
105
104
  Attrs: pc.GetPushConfigAttrs(),
106
105
  }},
107
- Context: ctx,
108
106
  })
109
107
  return err
110
108
  }
@@ -19,16 +19,16 @@ import (
19
19
  "go.mau.fi/whatsmeow/types/events"
20
20
  )
21
21
 
22
- func (cli *Client) handleReceipt(node *waBinary.Node) {
22
+ func (cli *Client) handleReceipt(ctx context.Context, node *waBinary.Node) {
23
23
  var cancelled bool
24
- defer cli.maybeDeferredAck(cli.BackgroundEventCtx, node)(&cancelled)
24
+ defer cli.maybeDeferredAck(ctx, node)(&cancelled)
25
25
  receipt, err := cli.parseReceipt(node)
26
26
  if err != nil {
27
27
  cli.Log.Warnf("Failed to parse receipt: %v", err)
28
28
  } else if receipt != nil {
29
29
  if receipt.Type == types.ReceiptTypeRetry {
30
30
  go func() {
31
- err := cli.handleRetryReceipt(cli.BackgroundEventCtx, receipt, node)
31
+ err := cli.handleRetryReceipt(ctx, receipt, node)
32
32
  if err != nil {
33
33
  cli.Log.Errorf("Failed to handle retry receipt for %s/%s from %s: %v", receipt.Chat, receipt.MessageIDs[0], receipt.Sender, err)
34
34
  }
@@ -121,10 +121,10 @@ func (cli *Client) maybeDeferredAck(ctx context.Context, node *waBinary.Node) fu
121
121
  Msg("Not sending ack for node")
122
122
  return
123
123
  }
124
- cli.sendAck(node, 0)
124
+ cli.sendAck(ctx, node, 0)
125
125
  }
126
126
  } else {
127
- go cli.sendAck(node, 0)
127
+ go cli.sendAck(ctx, node, 0)
128
128
  return func(...*bool) {}
129
129
  }
130
130
  }
@@ -145,7 +145,7 @@ const (
145
145
  NackDBOperationFailed = 552
146
146
  )
147
147
 
148
- func (cli *Client) sendAck(node *waBinary.Node, error int) {
148
+ func (cli *Client) sendAck(ctx context.Context, node *waBinary.Node, error int) {
149
149
  attrs := waBinary.Attrs{
150
150
  "class": node.Tag,
151
151
  "id": node.Attrs["id"],
@@ -172,7 +172,7 @@ func (cli *Client) sendAck(node *waBinary.Node, error int) {
172
172
  if error != 0 {
173
173
  attrs["error"] = error
174
174
  }
175
- err := cli.sendNode(waBinary.Node{
175
+ err := cli.sendNode(ctx, waBinary.Node{
176
176
  Tag: "ack",
177
177
  Attrs: attrs,
178
178
  })
@@ -191,7 +191,7 @@ func (cli *Client) sendAck(node *waBinary.Node, error int) {
191
191
  //
192
192
  // To mark a voice message as played, specify types.ReceiptTypePlayed as the last parameter.
193
193
  // Providing more than one receipt type will panic: the parameter is only a vararg for backwards compatibility.
194
- func (cli *Client) MarkRead(ids []types.MessageID, timestamp time.Time, chat, sender types.JID, receiptTypeExtra ...types.ReceiptType) error {
194
+ func (cli *Client) MarkRead(ctx context.Context, ids []types.MessageID, timestamp time.Time, chat, sender types.JID, receiptTypeExtra ...types.ReceiptType) error {
195
195
  if len(ids) == 0 {
196
196
  return fmt.Errorf("no message IDs specified")
197
197
  }
@@ -210,7 +210,7 @@ func (cli *Client) MarkRead(ids []types.MessageID, timestamp time.Time, chat, se
210
210
  "t": timestamp.Unix(),
211
211
  },
212
212
  }
213
- if chat.Server == types.NewsletterServer || cli.GetPrivacySettings(context.TODO()).ReadReceipts == types.PrivacySettingNone {
213
+ if chat.Server == types.NewsletterServer || cli.GetPrivacySettings(ctx).ReadReceipts == types.PrivacySettingNone {
214
214
  switch receiptType {
215
215
  case types.ReceiptTypeRead:
216
216
  node.Attrs["type"] = string(types.ReceiptTypeReadSelf)
@@ -231,7 +231,7 @@ func (cli *Client) MarkRead(ids []types.MessageID, timestamp time.Time, chat, se
231
231
  Content: children,
232
232
  }}
233
233
  }
234
- return cli.sendNode(node)
234
+ return cli.sendNode(ctx, node)
235
235
  }
236
236
 
237
237
  // SetForceActiveDeliveryReceipts will force the client to send normal delivery
@@ -274,7 +274,7 @@ func buildBaseReceipt(id string, node *waBinary.Node) waBinary.Attrs {
274
274
  return attrs
275
275
  }
276
276
 
277
- func (cli *Client) sendMessageReceipt(info *types.MessageInfo, node *waBinary.Node) {
277
+ func (cli *Client) sendMessageReceipt(ctx context.Context, info *types.MessageInfo, node *waBinary.Node) {
278
278
  attrs := buildBaseReceipt(info.ID, node)
279
279
  if info.IsFromMe {
280
280
  attrs["type"] = string(types.ReceiptTypeSender)
@@ -284,7 +284,7 @@ func (cli *Client) sendMessageReceipt(info *types.MessageInfo, node *waBinary.No
284
284
  } else if cli.sendActiveReceipts.Load() == 0 {
285
285
  attrs["type"] = string(types.ReceiptTypeInactive)
286
286
  }
287
- err := cli.sendNode(waBinary.Node{
287
+ err := cli.sendNode(ctx, waBinary.Node{
288
288
  Tag: "receipt",
289
289
  Attrs: attrs,
290
290
  })