Suppose:
- You invite Bob to a room. Bob immediately joins and sends a message.
/sync is slow for whatever reason, and Bob's message is returned in the /sync response as the remote echo of your invite event.
In that scenario, Room.getUnreadNotificationCount() should return 1. However, it currently returns 0. This causes the client to show the room as fully read, whereas in fact there are unread messages.