Skip to content

Commit

Permalink
Adding extra check for channel connection to avoid failing markRead call
Browse files Browse the repository at this point in the history
Fixes - #167
  • Loading branch information
vishalnarkhede committed Apr 22, 2020
1 parent 5c5e905 commit 317fb1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ class ChannelInner extends PureComponent {
};

markRead = (channel) => {
if (!channel.getConfig().read_events) {
if (this.props.channel.disconnected || !channel.getConfig().read_events) {
return;
}
this.lastRead = new Date();
Expand Down

0 comments on commit 317fb1f

Please sign in to comment.