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!
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | Capture d’écran du 2019 01 30 11 58 00.png | 214.98 KB | zenimagine |
| #6 | Capture d’écran du 2019 01 30 11 55 42.png | 455.63 KB | zenimagine |
| #4 | unread_message_count-2995327-4.patch | 1.81 KB | cosolom |
| #2 | unread_message_count-2995327-2.patch | 1.81 KB | saranya ashokkumar |
Comments
Comment #2
saranya ashokkumar commentedComment #3
nagarajan kumar commentedthe above patch working fine .now showing exact count.
Comment #4
cosolom commentedFixed: DESC it's not constant and replaced double quotes to single quotes (code standard)
Comment #5
zenimagine commentedSuper, thanks the patch #4 corrects the problem for me.
Is this question related to https://www.drupal.org/project/private_message/issues/2977310 ?
Comment #6
zenimagine commented@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.
Comment #7
mike82 commentedI 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.
Comment #8
phjouThe 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.
Comment #9
anmolgoyal74 commentedMarking as Fixed.
If anyone still faces this issue, feel free to open this again.