• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

New private message notifier broken

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JForum-2.1.6

It appears JForum keeps the number of new PMs only in the recipient's session. (See net.jforum.view.forum.PrivateMessageAction). This number is incremented each time a user sends a PM to the recipient if the recipient is logged in and decremented when the recipient reads the message.

When a user logs in and reads a new message, this number is still decremented in his session even if it's zero or less. Consequently, even while the user is logged in, the number of unread messages in his sesssion can become incorrect.

Is this a known issue and are there any plans to compute the number of unread message based on the persistent data in the jforum_privmsgs table, for example?

Does anyone know any workaround?

Thanks.
[originally posted on jforum.net by peko]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is fixed now. Thanks for reporting.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rafael,

I just want to yo know the follwoing issue. If you already fixed then ignore my message.

forums-->private messages-->If a user has any new private messages, the user did not wish to check them and deleted.The number displayed in brackets is not flushing when messages are not checked and deleted.
for example i have 2 new private messages[appears as "New private messages(2)] yet to be checked and i deleted those messages.then it should appear as "private message". But it still shows the same "New private messages(2)" after navigating other links(refreshing) or after sign out and sign in.


Thanks,
Gopal
[originally posted on jforum.net by gopal]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, this has been fixed.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!