Hi,

I have noticed that, private message unread count is showing wrongly. It is showing based on the thread id which is update after last access. But I unread message count should come only for the "to" user not for "from" member.

I have create based on thread owner.

Please review!

Comments

saranya ashokkumar’s picture

Status: Active » Needs review
StatusFileSize
new1.81 KB
nagarajan kumar’s picture

Status: Needs review » Reviewed & tested by the community

the above patch working fine .now showing exact count.

cosolom’s picture

StatusFileSize
new1.81 KB

Fixed: DESC it's not constant and replaced double quotes to single quotes (code standard)

zenimagine’s picture

Super, thanks the patch #4 corrects the problem for me.

Is this question related to https://www.drupal.org/project/private_message/issues/2977310 ?

zenimagine’s picture

@cosolom Before applying the patch, when I send a message it was counted as unread. Now it works but there are still 2 bugs:

- When I send a message it is well understood as read in the notification block. But in my Inbox Views, it is counted as unread.

- If I am on the conversation and receive a message, the notification block counts it as unread. Yet I'm on the conversation, it does not make sense.

mike82’s picture

I think this issue is better solved here Own send messages are shown as new messages.
In my opinion it is much faster to solve it in sql query instead of using foreach. Also the aforementioned issue fixes 2 more issues.

phjou’s picture

The SQL query has been merged, so is this issue remains? I have not seen any bugs so far with the new change, so I think it can be closed.

anmolgoyal74’s picture

Status: Reviewed & tested by the community » Fixed

Marking as Fixed.
If anyone still faces this issue, feel free to open this again.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.