mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-12 15:01:38 +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