Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 90061dd6a1 | |||
| 47b0940428 | |||
| 90937af374 |
@@ -1,7 +1,7 @@
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
package proto;
|
package proto;
|
||||||
|
|
||||||
/// WhatsApp Version: 2.3000.1037082622
|
/// WhatsApp Version: 2.3000.1037162330
|
||||||
|
|
||||||
message ADVDeviceIdentity {
|
message ADVDeviceIdentity {
|
||||||
optional uint32 rawId = 1;
|
optional uint32 rawId = 1;
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":[2,3000,1037137890]}
|
{"version":[2,3000,1037166441]}
|
||||||
|
|||||||
@@ -2377,12 +2377,20 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
|
|||||||
{ msgId: msg.key?.id, messageType },
|
{ msgId: msg.key?.id, messageType },
|
||||||
'CTWA: Skipping placeholder resend for unavailable fanout type'
|
'CTWA: Skipping placeholder resend for unavailable fanout type'
|
||||||
)
|
)
|
||||||
// For view-once: emit the message as a stub so consumers know it arrived.
|
// For view-once: emit the message with a viewOnceMessage placeholder
|
||||||
// Use 'notify' for live messages so realtime consumers get the event.
|
// so consumers (zpro, etc.) can detect and display it.
|
||||||
|
// Include a message wrapper so isValidMsg accepts it.
|
||||||
if (messageType === 'view_once_unavailable_fanout') {
|
if (messageType === 'view_once_unavailable_fanout') {
|
||||||
msg.key.isViewOnce = true
|
msg.key.isViewOnce = true
|
||||||
msg.messageStubType = proto.WebMessageInfo.StubType.CIPHERTEXT
|
msg.message = {
|
||||||
msg.messageStubParameters = ['view_once_unavailable']
|
viewOnceMessage: {
|
||||||
|
message: {
|
||||||
|
imageMessage: {
|
||||||
|
viewOnce: true,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
const upsertType = node.attrs.offline ? 'append' : 'notify'
|
const upsertType = node.attrs.offline ? 'append' : 'notify'
|
||||||
await upsertMessage(msg, upsertType)
|
await upsertMessage(msg, upsertType)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user