Mark contacts as dead or undead while transmitting and receiving messages

This commit is contained in:
Michael 2016-11-19 20:10:29 +00:00
parent ba24b1b651
commit 89d5aa64ba
3 changed files with 57 additions and 12 deletions

View file

@ -381,7 +381,14 @@ function delivery_run(&$argv, &$argc){
if ($deliver_status == (-1)) {
logger('notifier: delivery failed: queuing message');
add_to_queue($contact['id'],NETWORK_DFRN,$atom);
// The message could not be delivered. We mark the contact as "dead"
mark_for_death($contact);
} else {
// We successfully delivered a message, the contact is alive
unmark_for_death($contact);
}
break;
case NETWORK_OSTATUS: