summaryrefslogtreecommitdiff
path: root/telepathy-logger/log-store-sqlite.c
diff options
context:
space:
mode:
Diffstat (limited to 'telepathy-logger/log-store-sqlite.c')
-rw-r--r--telepathy-logger/log-store-sqlite.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/telepathy-logger/log-store-sqlite.c b/telepathy-logger/log-store-sqlite.c
index 3d5bc68..1d43ba6 100644
--- a/telepathy-logger/log-store-sqlite.c
+++ b/telepathy-logger/log-store-sqlite.c
@@ -445,8 +445,9 @@ tpl_log_store_sqlite_add_message_counter (TplLogStore *self,
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
- if (_tpl_entry_get_signal_type (message) !=
- TPL_ENTRY_TEXT_SIGNAL_RECEIVED)
+ if ((TPL_IS_ENTRY_TEXT (message) == FALSE) ||
+ (_tpl_entry_get_signal_type (message) !=
+ TPL_ENTRY_TEXT_SIGNAL_RECEIVED))
{
DEBUG ("ignoring msg %s, not interesting for message-counter",
_tpl_entry_get_log_id (message));