Ignore ACK if fragment's status is already delivered
This commit is contained in:
parent
58bba6ea68
commit
f9be0e8c7b
1 changed files with 4 additions and 0 deletions
|
@ -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 (
|
||||||
|
|
Loading…
Reference in a new issue