Skip to content

Commit

Permalink
Resetando as notificações do channel ao ver o historico
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Chuairi Cruz committed Aug 30, 2018
1 parent 5cd6349 commit a5bc724
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ class App extends Component {

socket.on('got channel', (channel) => {
this.setState({
channel: channel
channel: channel,
notifications: {
...this.state.notifications,
[channel.id]: 0
}
})
})

Expand Down Expand Up @@ -62,10 +66,6 @@ class App extends Component {
...this.state.user.channels,
channel.id
]
},
notifications: {
...this.state.notifications,
[channel.id]: 0
}
})
})
Expand Down

0 comments on commit a5bc724

Please sign in to comment.