1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

Switch to 'm.sticker' message events. Allow whitelisting of wisget capabilities.

This commit is contained in:
Richard Lewis
2018-03-12 13:56:02 +00:00
parent 46f46ee294
commit b2d23b6999
6 changed files with 41 additions and 13 deletions

View File

@ -65,7 +65,7 @@ module.exports = React.createClass({
let BodyType = UnknownBody;
if (msgtype && bodyTypes[msgtype]) {
BodyType = bodyTypes[msgtype];
} else if (this.props.mxEvent.getType() === 'm.room.sticker') {
} else if (this.props.mxEvent.getType() === 'm.sticker') {
BodyType = sdk.getComponent('messages.MStickerBody');
} else if (content.url) {
// Fallback to MFileBody if there's a content URL