[buddypress-trac] [BuddyPress] #3971: Private messaging sends to multiple users automatically
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Thu Jun 28 02:43:41 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 |
--------------------------------+-----------------------------
Changes (by minminloveislonely):
* cc: minmin@… (added)
Comment:
Replying to [comment:24 boonebgorges]:
> OK. Next, in `buddypress/bp-messages/bp-messages-classes.php`, there are
two methods called `get_recipients()`. You want the first one (in class
`BP_Messages_Thread`):
https://buddypress.trac.wordpress.org/browser/tags/1.5.6/bp-messages/bp-
messages-classes.php#L53
>
> Right after line 56 (the one beginning `$results =`), put the following:
>
> {{{
> echo '<pre>';
> print_r( $wpdb->prepare( "SELECT * FROM
{$bp->messages->table_name_recipients} WHERE thread_id = %d",
$this->thread_id ) );
> echo '<br /><br />';
> print_r( $results );
> echo '</pre>';
> }}}
>
> Then, two questions. (1) Do you also see the random member in this list?
(Probably yes.) (2) Can you paste the SQL statement here? Should look
something like `SELECT * FROM wp_bp_messages_recipients WHERE thread_id =
2`
Yes.
SELECT * FROM wp_bp_messages_recipients WHERE thread_id = 392
Array
(
[0] => stdClass Object
(
[id] => 801
[user_id] => 183
[thread_id] => 392
[unread_count] => 1
[sender_only] => 0
[is_deleted] => 0
)
[1] => stdClass Object
(
[id] => 1176
[user_id] => 1
[thread_id] => 392
[unread_count] => 0
[sender_only] => 0
[is_deleted] => 0
)
[2] => stdClass Object
(
[id] => 1177
[user_id] => 109
[thread_id] => 392
[unread_count] => 0
[sender_only] => 1
[is_deleted] => 0
)
)
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3971#comment:25>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list