Behaviour difference when Message and Notification get updated.
Pre-condition
2 Users, UserA & UserB
2 browsers
Steps:
Browse to UserB User Profile > Messages > Message tab
Send a message from UserA to UserB
Wait for 30 sec.
Noticed: The number on Message Tab and the number on User info drop-down menu (on very top of the page) are both updated.
Similar steps, but this time for Notification. (For instance send out an approval notification for Moderator)
Browse to Moderator User Profile > Messages > Notification tab
UserB try to add a comment which requires approval by moderator
Wait for 30 sec.
Result: The number on Notification Tab won't be updated. But the number on User info drop-down menu will be updated.
Expected: same updating behaviour between messages and notifications.
I updated the refresh behavior in coreMessage module in platform.
it will refresh the totalNewMessages number and totalNotifications number every 30 seconds. and once it gets the new messages number, it will compare to the old number, if there is some difference and user is in inbox view, it will refresh inbox.
same behavior in notifications tab. once it gets the new notification count, it will check with old one, if there is some difference and user is in notification view, it will refresh notification tab.
verified and fixed while testing within social v2.1 build 350.