TplLogStoreEmpathy should not get valid accounts from the AM
Submitted by Cosimo Alfarano
Assigned to Telepathy bugs list
Description
Currently in log_store_empathy_search_hit_new() log-store-empathy get a list of valid accounts from the AM, because of the way Empathy handled it.
In TPL it shoudln't be used only valid accounts, or the search will cut off all the accounts that for example were removed but still in the TPL log history.
Probably calling tp_account_manager_get_valid_accounts() is useles and since it needs preparation, it is actually not needed. Instead a query to retrieve all the current logged account would be its replacement. From TPL LogStore's point of view, it doesn't matter if an account is valid or not, just if it has some LogEntry to show or not.