Skip to content
Snippets Groups Projects
Commit 280fa288 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Now handles the case when a recipient to a text has been deleted.

parent e7583efa
Branches
Tags
No related merge requests found
...@@ -75,17 +75,24 @@ garb_text(void) ...@@ -75,17 +75,24 @@ garb_text(void)
switch ( misc->type ) switch ( misc->type )
{ {
case recpt: case recpt:
limit = 24 * 3600 * cached_get_garb_nice( misc->datum.recipient ); if ( cached_conf_exists( misc->datum.recipient ) )
{
limit = (24 * 3600 *
cached_get_garb_nice( misc->datum.recipient ));
if ( age < limit ) if ( age < limit )
return FALSE; return FALSE;
}
break; break;
case cc_recpt: case cc_recpt:
if ( cached_conf_exists( misc->datum.cc_recipient ))
{
limit = ( 24 * 3600 limit = ( 24 * 3600
* cached_get_garb_nice( misc->datum.cc_recipient )); * cached_get_garb_nice( misc->datum.cc_recipient ));
if ( age < limit ) if ( age < limit )
return FALSE; return FALSE;
}
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment