mirror of
https://github.com/element-hq/element-web
synced 2024-11-22 17:25:50 +03:00
More places where we assumed sender would not be null
This commit is contained in:
parent
cb25740961
commit
2351ad997c
1 changed files with 7 additions and 5 deletions
|
@ -69,11 +69,13 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
var avatar, sender, resend;
|
var avatar, sender, resend;
|
||||||
if (!this.props.continuation) {
|
if (!this.props.continuation) {
|
||||||
|
if (this.props.mxEvent.sender) {
|
||||||
avatar = (
|
avatar = (
|
||||||
<div className="mx_MessageTile_avatar">
|
<div className="mx_MessageTile_avatar">
|
||||||
<MemberAvatar member={this.props.mxEvent.sender} />
|
<MemberAvatar member={this.props.mxEvent.sender} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
}
|
||||||
sender = <SenderProfile mxEvent={this.props.mxEvent} aux={aux} />;
|
sender = <SenderProfile mxEvent={this.props.mxEvent} aux={aux} />;
|
||||||
}
|
}
|
||||||
if (this.props.mxEvent.status === "not_sent" && !this.state.resending) {
|
if (this.props.mxEvent.status === "not_sent" && !this.state.resending) {
|
||||||
|
|
Loading…
Reference in a new issue