Fix blank avatars, duplicate recent media, static message details

This commit is contained in:
Scott Nonnenberg 2021-09-29 13:18:27 -07:00 committed by GitHub
parent 5c1776e00e
commit 1e3de45af6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 39 additions and 23 deletions

View file

@ -39,11 +39,11 @@
this.hasRendered = false;
},
update(props, cb) {
const updatedProps = this.augmentProps(props);
update(propsOrJSX, cb) {
const reactElement = this.JSX
? this.JSX
: React.createElement(this.Component, updatedProps);
? propsOrJSX || this.JSX
: React.createElement(this.Component, this.augmentProps(propsOrJSX));
ReactDOM.render(reactElement, this.el, () => {
if (cb) {
try {