Messages are not being marked as read while the chat is open
When someone sends a message while the chat is opened (i.e. in the foreground) messages are not being marked as read. So if you're actively chatting and then going back to the chat overview, the unread messages count won't be 0.
Pattle 0.11.0 on Android.