mirror of
https://github.com/urbit/shrub.git
synced 2024-11-28 22:33:06 +03:00
chat-js: update read on initialisation
This commit is contained in:
parent
eb6b50e0ca
commit
17e1dd8362
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user