Opened 16 years ago
Closed 13 years ago
#574 closed defect (bug) (fixed)
Unread message numbers do not decrement in "My Messages" optionsbar
Reported by: | jeffca | Owned by: | |
---|---|---|---|
Milestone: | 1.5 | Priority: | minor |
Severity: | Version: | ||
Component: | Core | Keywords: | has-patch commit |
Cc: | johnjamesjacoby |
Description
From suggestion 2 on post: http://buddypress.org/forums/topic.php?id=1217
Unread message count stays the same after message has been opened.
Attachments (1)
Change History (14)
#1
@
16 years ago
- Keywords unread count added; notification removed
- Milestone Private Messaging 1.0 deleted
#5
@
15 years ago
- Milestone changed from 1.1 to 1.2
The count is only deprecated once the message has been opened, and is only reflected on the next page load. This will probably be fixed with AJAX, moving to 1.2.
#6
@
15 years ago
Is it not possible to mark the message as read after we know which message it is but before the page loads and the count takes place?
#8
@
15 years ago
- Keywords needs-patch added; unread message count removed
- Milestone changed from 1.2 to 1.2.1
#10
@
14 years ago
- Component set to Core
jjj - the way things are currently set up, BP doesn't really 'know' what thread is being called up until the screen function is called up; the screen function, in turn, isn't defined until the parent item (the main Messages tab) and its name (eg Messages (2)) is already set.
Aside from completely rewriting the way that navs and subnavs register themselves, there are two strategies:
1) Reach into $bp->bp_nav and adjust the message count (after it's been registered but before it's been rendered). See 574-1.diff to see what this might look like.
2) Hook into the loading process *before* the messages nav is created with a function that checks to see (based on the action_variables etc) whether you're trying to view a single message, and if so it calls messages_mark_thread_read() on that thread.
Neither is great, but it strikes me that (1) has fewer potential problems (even though it's a bit uglier). I would rather not mess with load order if I can help it.
Thoughts?
Not important enough for 1.0, moving this to 1.1.