updatePacketByKey

open suspend fun updatePacketByKey(data: DataPacket, routingError: Int)(source)

Atomically finds a packet by identity key (id + from + to) and updates its data, optionally stamping routingError when it is non-negative. Mirrors the existing updateMessageStatus / updateMessageId pattern.