Store the server transport protocol
This commit is contained in:
committed by
Hypolite Petovan
parent
ca8e4066fc
commit
bf563a1a39
@@ -360,6 +360,8 @@ class Delivery
|
||||
if (in_array($cmd, [Delivery::POST, Delivery::POKE])) {
|
||||
if (($deliver_status >= 200) && ($deliver_status <= 299)) {
|
||||
Model\Post\DeliveryData::incrementQueueDone($target_item['uri-id'], $protocol);
|
||||
|
||||
Model\GServer::setProtocol($contact['gsid'], $protocol);
|
||||
} else {
|
||||
Model\Post\DeliveryData::incrementQueueFailed($target_item['uri-id']);
|
||||
}
|
||||
@@ -391,6 +393,8 @@ class Delivery
|
||||
// We successfully delivered a message, the contact is alive
|
||||
Model\Contact::unmarkForArchival($contact);
|
||||
|
||||
Model\GServer::setProtocol($contact['gsid'], $protocol);
|
||||
|
||||
if (in_array($cmd, [Delivery::POST, Delivery::POKE])) {
|
||||
Model\Post\DeliveryData::incrementQueueDone($target_item['uri-id'], $protocol);
|
||||
}
|
||||
@@ -476,6 +480,8 @@ class Delivery
|
||||
// We successfully delivered a message, the contact is alive
|
||||
Model\Contact::unmarkForArchival($contact);
|
||||
|
||||
Model\GServer::setProtocol($contact['gsid'], Model\Post\DeliveryData::DIASPORA);
|
||||
|
||||
if (in_array($cmd, [Delivery::POST, Delivery::POKE])) {
|
||||
Model\Post\DeliveryData::incrementQueueDone($target_item['uri-id'], Model\Post\DeliveryData::DIASPORA);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user