[buddypress-trac] [BuddyPress Trac] #1475: bp_get_total_unread_messages_count()

buddypress-trac noreply at wordpress.org
Mon Jan 2 19:28:29 UTC 2023


#1475: bp_get_total_unread_messages_count()
---------------------------+--------------------------
 Reporter:  _DorsVenabili  |       Owner:  espellcaste
     Type:  enhancement    |      Status:  assigned
 Priority:  trivial        |   Milestone:  Up Next
Component:  Messages       |     Version:
 Severity:  trivial        |  Resolution:
 Keywords:  needs-patch    |
---------------------------+--------------------------
Changes (by imath):

 * keywords:  good-first-bug needs-patch 2nd-opinion => needs-patch


Comment:

 Hi @espellcaste

 I'm very dubitative about the interest of mixing notices count with
 messages count. I think these are 2 different objects. BTW, that's why I
 moved notices publishing into the WP Admin screen since 3.0 (it's a
 community administrator only tool). IMHO, It should be a feature living
 outside of the Messages component (in core or in a Notice component).

 There might be a limited interest to get the unread notice count, so why
 not introducing `bp_get_total_unread_notices_count()`. So far, the feature
 only loads one notice at a time. So you get the `n+1` notice once you've
 marked the `n` one as read.

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


More information about the buddypress-trac mailing list