Skip to content

Commit 0b2ea9d

Browse files
committed
send: use high push priority for syncd recovery requests
1 parent fd4e4c2 commit 0b2ea9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

send.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ func (cli *Client) preparePeerMessageNode(
10451045
"category": "peer",
10461046
"to": to,
10471047
}
1048-
if message.GetProtocolMessage().GetType() == waE2E.ProtocolMessage_APP_STATE_SYNC_KEY_REQUEST {
1048+
if message.GetProtocolMessage().GetType() == waE2E.ProtocolMessage_APP_STATE_SYNC_KEY_REQUEST || (message.GetProtocolMessage().GetType() == waE2E.ProtocolMessage_PEER_DATA_OPERATION_REQUEST_MESSAGE && message.GetProtocolMessage().GetPeerDataOperationRequestMessage().GetSyncdCollectionFatalRecoveryRequest() != nil) {
10491049
attrs["push_priority"] = "high"
10501050
}
10511051
start := time.Now()

0 commit comments

Comments
 (0)