mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 02:08:57 +00:00
Improve delivery receipt processing
This commit is contained in:
@@ -1335,6 +1335,17 @@ export default class MessageReceiver
|
||||
envelope.sourceServiceId,
|
||||
'Unsealed envelope must have source uuid'
|
||||
);
|
||||
|
||||
if (
|
||||
isPniString(envelope.sourceServiceId) &&
|
||||
envelope.type !== Proto.Envelope.Type.SERVER_DELIVERY_RECEIPT
|
||||
) {
|
||||
log.warn(
|
||||
`unsealEnvelope(${logId}): dropping non-receipt envelope from PNI`
|
||||
);
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return {
|
||||
...envelope,
|
||||
sourceServiceId: envelope.sourceServiceId,
|
||||
|
||||
Reference in New Issue
Block a user