chat-js: update read on initialisation

This commit is contained in:
Liam Fitzgerald 2020-04-29 13:37:58 +10:00
parent eb6b50e0ca
commit 17e1dd8362

View File

@ -103,6 +103,10 @@ export class ChatScreen extends Component {
this.props.api.chat.read(this.props.station);
}
if(!prevProps.chatInitialized && props.chatInitialized) {
this.setState({ read: props.read })
}
if (
(props.length !== prevProps.length ||
props.envelopes.length !== prevProps.envelopes.length ||