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