r3694 - in trunk/src/target/OM-2007.2/applications/openmoko-dialer2: . src/phone-kit

chris at sita.openmoko.org chris at sita.openmoko.org
Wed Dec 19 16:46:12 CET 2007


Author: chris
Date: 2007-12-19 16:46:11 +0100 (Wed, 19 Dec 2007)
New Revision: 3694

Modified:
   trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog
   trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/phone-kit/moko-sms.c
Log:
        * src/phone-kit/moko-sms.c: (note_added_cb), (note_modified_cb):
        Don't notify on sent messages


Modified: trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog	2007-12-19 15:30:17 UTC (rev 3693)
+++ trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog	2007-12-19 15:46:11 UTC (rev 3694)
@@ -1,5 +1,10 @@
 2007-12-19  Chris Lord  <chris at openedhand.com>
 
+	* src/phone-kit/moko-sms.c: (note_added_cb), (note_modified_cb):
+	Don't notify on sent messages
+
+2007-12-19  Chris Lord  <chris at openedhand.com>
+
 	* src/phone-kit/moko-sms.c: (moko_sms_dispose),
 	(stop_notify_timeout), (update_notification), (moko_sms_init):
 	Add tone/vibration notification

Modified: trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/phone-kit/moko-sms.c
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/phone-kit/moko-sms.c	2007-12-19 15:30:17 UTC (rev 3693)
+++ trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/phone-kit/moko-sms.c	2007-12-19 15:46:11 UTC (rev 3694)
@@ -453,7 +453,9 @@
     
     if (!comp) continue;
     
-    if (!jana_utils_component_has_category (comp, "Read")) {
+    if ((!jana_utils_component_has_category (comp, "Read")) &&
+	(!(jana_utils_component_has_category (comp, "Sending") ||
+	 jana_utils_component_has_category (comp, "Sent")))) {
       gchar *uid = jana_component_get_uid (comp);
       priv->unread_uids = g_list_prepend (priv->unread_uids, uid);
       update = TRUE;
@@ -486,7 +488,9 @@
         priv->unread_uids = g_list_delete_link (priv->unread_uids, found);
         update = TRUE;
       }
-    } else if (!jana_utils_component_has_category (comp, "Read")) {
+    } else if ((!jana_utils_component_has_category (comp, "Read")) &&
+	(!(jana_utils_component_has_category (comp, "Sending") ||
+	 jana_utils_component_has_category (comp, "Sent")))) {
       priv->unread_uids = g_list_prepend (priv->unread_uids, uid);
       update = TRUE;
     } else {





More information about the commitlog mailing list