Fixed Conversation bubble count incorrect...

Fethi.dz

Well-known member
Affected version
2.0.2
Hi,

I upgraded my forum from 1.5.16 to 2.0.2 and found that the conversation bubble count was incorrect.

I did rebuild the user cash and fix the problem for a moment but as soon I click on the conversation icon the count goes back 10 as you can see…

 
This situation occurred because we do a recount of the badge count when the pop up opens. That recount is based on count($conversations['unread']). Obvious problem is, as we only retrieve a maximum of 10 conversations, if you have more than 10, then the count was rebuilt to 10.

Solution was just to query for the correct count. Costs an extra query but better than being wrong :)
 
Top Bottom