unrelated fix: rerender hidden event tile when decrypted
to get accurate type
This commit is contained in:
parent
59dc3cfb97
commit
3590c97d96
1 changed files with 7 additions and 0 deletions
|
@ -32,6 +32,13 @@ export default class ViewSourceEvent extends React.PureComponent {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
componentDidMount() {
|
||||||
|
const {mxEvent} = this.props;
|
||||||
|
if (mxEvent.isBeingDecrypted()) {
|
||||||
|
mxEvent.once("Event.decrypted", () => this.forceUpdate());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
onToggle = (ev) => {
|
onToggle = (ev) => {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
const { expanded } = this.state;
|
const { expanded } = this.state;
|
||||||
|
|
Loading…
Reference in a new issue