mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
unrelated fix: rerender hidden event tile when decrypted
to get accurate type
This commit is contained in:
parent
59dc3cfb97
commit
3590c97d96
@ -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) => {
|
||||
ev.preventDefault();
|
||||
const { expanded } = this.state;
|
||||
|
Loading…
Reference in New Issue
Block a user