diff --git bp-messages/bp-messages-notifications.php bp-messages/bp-messages-notifications.php
index f48deb5..661ce44 100644
|
|
|
function messages_format_notifications( $action, $item_id, $secondary_item_id, $ |
| 150 | 150 | * @param obj $message |
| 151 | 151 | */ |
| 152 | 152 | function bp_messages_message_sent_add_notification( $message ) { |
| | 153 | if ( is_array( $message ) ) { |
| | 154 | $message = (object) $message; |
| | 155 | } |
| | 156 | |
| 153 | 157 | if ( bp_is_active( 'notifications' ) && ! empty( $message->recipients ) ) { |
| 154 | 158 | foreach ( (array) $message->recipients as $recipient ) { |
| 155 | 159 | bp_notifications_add_notification( array( |