fix(read-receipt): message status updates live

This commit is contained in:
Evan Morikawa 2016-02-24 15:25:11 -08:00
parent f86d984355
commit 3790f15732

View file

@ -14,6 +14,10 @@ export default class OpenTrackingMessageStatus extends React.Component {
this.state = this._getStateFromMessage(props.message)
}
componentWillReceiveProps(nextProps) {
this.setState(this._getStateFromMessage(nextProps.message))
}
_getStateFromMessage(message) {
const metadata = message.metadataForPluginId(PLUGIN_ID);
if (!metadata) {