Ignore ACK if fragment's status is already delivered

This commit is contained in:
Benjamin Renard 2017-11-19 18:17:28 +01:00
parent 58bba6ea68
commit f9be0e8c7b

View file

@ -263,6 +263,10 @@ function update_outgoing_msg_frag($msguid, $fragid, $status) {
return -1; return -1;
if (is_array($frag)) { if (is_array($frag)) {
if ($frag['status'] == 'delivered') {
logging('INFO', "Message $msguid : Fragment $fragid already delivered, ignore ack with status '$status'.");
return True;
}
$result = $fpdo -> update('outgoing_msg_frag') $result = $fpdo -> update('outgoing_msg_frag')
-> set( -> set(
array ( array (