[buddypress-trac] [BuddyPress] #3971: Private messaging sends to multiple users automatically

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed Jun 27 23:11:03 UTC 2012

#3971: Private messaging sends to multiple users automatically
 Reporter:  minminloveislonely  |       Owner:  DJPaul
     Type:  defect (bug)        |      Status:  reopened
 Priority:  normal              |   Milestone:  Future Release
Component:  Messaging           |     Version:  1.5.3
 Severity:  normal              |  Resolution:
 Keywords:  reporter-feedback   |

Comment (by boonebgorges):

 Good - that confirms that it's definitely a display issue.

 Now for the real digging :) In the plugin files, open `buddypress/bp-
 messages/bp-messages-template.php`. Look for the function
 `bp_thread_has_messages()`, which should start around line 774:
 messages-template.php#L716 Put a new line right above the final line in
 the plugin, so that it looks like this:

 $thread_template = new BP_Messages_Thread_Template( $thread_id, $order );
 print_r( $thread_template->thread->recipients );
 return $thread_template->has_messages();

 (the print_r() line is the new one). Then open one of the problematic
 threads in the browser, and take note of what's printed on the screen. You
 might find it a bit easier to read if you turn that print_r() line into
 the following:

 echo '<pre>'; print_r( $thread_template->thread->recipients ); echo

 Who is in the list? Are you seeing the "random" member, in addition to the
 legitimate recipients? Depending on your answer to this, we can do another
 level of digging.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3971#comment:22>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list