Skip to content

Commit

Permalink
Merge branch 'rmp-v2' into v6.1-rc
Browse files Browse the repository at this point in the history
  • Loading branch information
c3bryant committed Oct 23, 2018
2 parents f2160f5 + a75af0b commit f5343fc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions app/views/messaging/Messaging.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,15 @@ export class Messaging extends Component {
}

render() {
// this will clear the notifications badge when the user is on this screen
/*if (this.props.navigation.isFocused()) {
this.props.setLatestTimeStamp(new Date().getTime())
}*/
const { messages, nextTimestamp } = this.props.messages
const { messages, nextTimestamp, unreadMessages } = this.props.messages
const { updateMessages } = this.props
const filteredData = checkData(messages)

// this will clear the notifications badge when the user is on this screen
if (this.props.navigation.isFocused() && unreadMessages) {
this.props.setLatestTimeStamp(new Date().getTime())
}

let isLoading = false
if (this.props.myMessagesStatus) isLoading = true

Expand Down Expand Up @@ -135,6 +136,7 @@ const mapStateToProps = (state, props) => (
messages: state.messages,
myMessagesStatus: state.requestStatuses.GET_MESSAGES,
myMessagesError: state.requestErrors.GET_MESSAGES,
unreadMessages: state.unreadMessages
}
)

Expand Down

0 comments on commit f5343fc

Please sign in to comment.