examples/flux-chat/js/modules/chat/stores/thread-store.js
function setMessagesRead(state, { threadID }) {
  return state.updateIn([threadID, 'messages'], messages => {
    return messages.map(msg => msg.set('isRead', true))
  })
}
function setMessagesRead(state, { threadID }) {
  return state.updateIn([threadID, 'messages'], messages => {
    return messages.map(msg => msg.set('isRead', true))
  })
}
function setMessagesRead ( state , { threadID } ) { return state . updateIn ( [ threadID , 'messages' ] , messages => { return messages . map ( msg => msg . set ( 'isRead' , true ) ) } ) }
Mark all messages for a thread as "read"
@param {Immutable.Map}
@param {Object} payload
@param {GUID} payload.threadID
Mark all messages for a thread as read