You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-14 19:02:33 +03:00
bring back small avatars for info msgs otherwise the design breaks
This commit is contained in:
@@ -375,7 +375,7 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
// Info messages are basically information about commands processed on a
|
// Info messages are basically information about commands processed on a
|
||||||
// room, or emote messages
|
// room, or emote messages
|
||||||
var isInfoMessage = false; // (msgtype === 'm.emote' || eventType !== 'm.room.message');
|
var isInfoMessage = (eventType !== 'm.room.message');
|
||||||
|
|
||||||
var EventTileType = sdk.getComponent(eventTileTypes[eventType]);
|
var EventTileType = sdk.getComponent(eventTileTypes[eventType]);
|
||||||
// This shouldn't happen: the caller should check we support this type
|
// This shouldn't happen: the caller should check we support this type
|
||||||
@@ -412,7 +412,7 @@ module.exports = React.createClass({
|
|||||||
avatarSize = 24;
|
avatarSize = 24;
|
||||||
needsSenderProfile = true;
|
needsSenderProfile = true;
|
||||||
} else if (isInfoMessage) {
|
} else if (isInfoMessage) {
|
||||||
// a small avatar, with no sender profile, for emotes and
|
// a small avatar, with no sender profile, for
|
||||||
// joins/parts/etc
|
// joins/parts/etc
|
||||||
avatarSize = 14;
|
avatarSize = 14;
|
||||||
needsSenderProfile = false;
|
needsSenderProfile = false;
|
||||||
@@ -422,7 +422,7 @@ module.exports = React.createClass({
|
|||||||
needsSenderProfile = false;
|
needsSenderProfile = false;
|
||||||
} else {
|
} else {
|
||||||
avatarSize = 30;
|
avatarSize = 30;
|
||||||
needsSenderProfile = (eventType === 'm.room.message');
|
needsSenderProfile = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.props.mxEvent.sender && avatarSize) {
|
if (this.props.mxEvent.sender && avatarSize) {
|
||||||
|
|||||||
Reference in New Issue
Block a user