Fix bug with onlyUnread and buffer with notifications without unread
messages