mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 02:05:19 +02:00
Mark contacts as dead or undead while transmitting and receiving messages
This commit is contained in:
parent
ba24b1b651
commit
89d5aa64ba
3 changed files with 57 additions and 12 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue