counting unread messages for groupchats, update groupchats on peer connect/disconnect