Messages showing phantom unread message count on Macbook (Messages in iCloud enabled) with no actual unread messages
I saw this post when I was facing the same issue. Cleared messages on my iPhone, but on my MacBook, the iMessage app kept showing the unread messages count even though there were none.
The solution listed in the original post did not work for me, but I found the following to work for the messages app and photos app, which was behaving the same way.
- Open terminal and then paste this command
killall Dock
2. Right click on messages app -> options -> Remove from dock
3. Open messgaes app again - The unread count should be gone now. You can add it to dock again.
Hope this helps someone out there.
MacBook Pro 16″, macOS 12.2