mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-01 13:14:16 +08:00
fix(read-receipt): message status updates live
This commit is contained in:
parent
f86d984355
commit
3790f15732
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue