[buddypress-trac] [BuddyPress Trac] #8426: Update queries when new message notifications mark as read

buddypress-trac noreply at wordpress.org
Sun Sep 12 17:52:35 UTC 2021


#8426: Update queries when new message notifications mark as read
--------------------------+---------------------
 Reporter:  oztaser       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  10.0.0
Component:  Messages      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+---------------------

Comment (by imath):

 Ok, thanks for confirming 👍.

 Then we need to think wider than the messages component to make the need
 to update notifications of a list of item IDs available more broadly. This
 means:

 1. adding a new `BP_Notifications_Notification::update_items` protected
 static method making it possible to pass an array of item IDs. I think we
 might even think of something more generic like
 `BP_Notifications_Notification::update_many` to update a list of
 notification for a list of  users, components, etc...
 2. adding a new function
 `bp_notifications_mark_notifications_for_item_ids()` to use the above
 method.
 3. Updating `bp_messages_mark_notification_on_mark_thread()` to use this
 new function.

 Is this something you want/have time to keep on working on?

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8426#comment:13>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list