Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
64d8187432
1 changed files with 3 additions and 3 deletions
|
@ -72,10 +72,10 @@ module.exports = React.createClass({
|
||||||
let BodyType = UnknownBody;
|
let BodyType = UnknownBody;
|
||||||
if (!this.props.mxEvent.isRedacted()) {
|
if (!this.props.mxEvent.isRedacted()) {
|
||||||
// only resolve BodyType if event is not redacted
|
// only resolve BodyType if event is not redacted
|
||||||
if (msgtype && bodyTypes[msgtype]) {
|
if (type && evTypes[type]) {
|
||||||
BodyType = bodyTypes[msgtype];
|
|
||||||
} else if (type && evTypes[type]) {
|
|
||||||
BodyType = evTypes[type];
|
BodyType = evTypes[type];
|
||||||
|
} else if (msgtype && bodyTypes[msgtype]) {
|
||||||
|
BodyType = bodyTypes[msgtype];
|
||||||
} else if (content.url) {
|
} else if (content.url) {
|
||||||
// Fallback to MFileBody if there's a content URL
|
// Fallback to MFileBody if there's a content URL
|
||||||
BodyType = bodyTypes['m.file'];
|
BodyType = bodyTypes['m.file'];
|
||||||
|
|
Loading…
Reference in a new issue