Bug 38973

Summary: tpl_log_manager_exists() doesn't have a GDate argument
Product: Telepathy Reporter: Emilio Pozuelo Monfort <pochu27>
Component: loggerAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED WONTFIX QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium CC: nicolas, pochu27
Version: git master   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Emilio Pozuelo Monfort 2011-07-05 03:38:32 UTC
I want to make the 'What' (text, calls, ...) filters in the Empathy history window unsensitive when there are no events of that type, and tpl_log_manager_exists() comes handy here. The problem is that if the user selects 'Bob', and 'Yesterday' and you didn't have calls with Bob yesterday, but you have had today, then tpl_log_manager_exists() will return TRUE.

I think we should add a tpl_log_manager_exists_for_date() that takes an additional GDate* argument. This would also be faster as we don't need to (potentially) walk the whole folder, but only test one file.

FTR the Empathy bug is https://bugzilla.gnome.org/show_bug.cgi?id=653343
Comment 1 Emilio Pozuelo Monfort 2011-07-05 08:03:52 UTC
Actually we may not need this, see https://bugzilla.gnome.org/show_bug.cgi?id=653343#c6

I'll close this bug if we decide to keep the current behaviour in Empathy.
Comment 2 Nicolas Dufresne 2011-10-31 11:14:59 UTC
As it got merge in Empathy ...

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.