? 430948.fallback.patch
? privatemsg_fix_is_new_2.patch
? privatemsg_strong.patch
Index: privatemsg.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/privatemsg/privatemsg.module,v
retrieving revision 1.70.2.30.2.91.2.55
diff -u -r1.70.2.30.2.91.2.55 privatemsg.module
--- privatemsg.module	1 Jul 2009 18:19:29 -0000	1.70.2.30.2.91.2.55
+++ privatemsg.module	1 Jul 2009 18:59:58 -0000
@@ -848,7 +848,7 @@
   $fragments['select'][]      = 'MAX(pmi.is_new) as is_new';
 
   if (in_array('count', $fields)) {
-    $fragments['select'][]      = 'COUNT(pmi.thread_id) as count';
+    $fragments['select'][]      = 'COUNT(distinct pmi.mid) as count';
   }
   if (in_array('participants', $fields)) {
     // Query for a string with uid's, for example "1,6,7". This needs a subquery on PostgreSQL.
@@ -1366,7 +1366,7 @@
   }
   // Also add a record for tha author to the pm_index table - set  column "new" to 0.
   db_query($query, $mid, $message['thread_id'], $message['author']->uid, 0);
-
+  privatemsg_message_change_status($mid, PRIVATEMSG_READ, $message['author']);
   module_invoke_all('privatemsg_message_insert', $message);
 
   return TRUE;
