add -1 handling in unreadMessages
Finish update-unread-messages