The issue is logical as there is no direct relation between the message and the thread's participants (expect for the user who created the message) but I'm surprised that nobody discover this issue before 🤔
I already have a fix for this issue and I'll create a PR immediately but could someone test this feature? The tests only access the new message through the $user->threadsWithNewMessages() method which is slightly different as it return the threads count and not the messages count which could be different if many message in one thread are unread.
Hi, I faced this issue using
Message::unreadForUser
:The issue is logical as there is no direct relation between the message and the thread's participants (expect for the user who created the message) but I'm surprised that nobody discover this issue before 🤔
I already have a fix for this issue and I'll create a PR immediately but could someone test this feature? The tests only access the new message through the
$user->threadsWithNewMessages()
method which is slightly different as it return the threads count and not the messages count which could be different if many message in one thread are unread.