Don't render a bubble around emotes in bubble layout (#7573)
This commit is contained in:
committed by
GitHub
parent
6806c2cdca
commit
d60b234b75
@@ -1122,6 +1122,10 @@ export default class EventTile extends React.Component<IProps, IState> {
|
||||
const lineClasses = classNames("mx_EventTile_line", {
|
||||
mx_EventTile_mediaLine: isProbablyMedia,
|
||||
mx_EventTile_sticker: this.props.mxEvent.getType() === EventType.Sticker,
|
||||
mx_EventTile_emote: (
|
||||
this.props.mxEvent.getType() === EventType.RoomMessage &&
|
||||
this.props.mxEvent.getContent().msgtype === MsgType.Emote
|
||||
),
|
||||
});
|
||||
|
||||
const isSending = (['sending', 'queued', 'encrypting'].indexOf(this.props.eventSendStatus) !== -1);
|
||||
|
||||
@@ -213,7 +213,7 @@ export function getEventDisplayInfo(mxEvent: MatrixEvent): {
|
||||
// Info messages are basically information about commands processed on a room
|
||||
let isBubbleMessage = (
|
||||
eventType.startsWith("m.key.verification") ||
|
||||
(eventType === EventType.RoomMessage && msgtype && msgtype.startsWith("m.key.verification")) ||
|
||||
(eventType === EventType.RoomMessage && msgtype?.startsWith("m.key.verification")) ||
|
||||
(eventType === EventType.RoomCreate) ||
|
||||
(eventType === EventType.RoomEncryption) ||
|
||||
(tileHandler === "messages.MJitsiWidgetEvent")
|
||||
@@ -232,6 +232,7 @@ export function getEventDisplayInfo(mxEvent: MatrixEvent): {
|
||||
);
|
||||
// Some non-info messages want to be rendered in the appropriate bubble column but without the bubble background
|
||||
const noBubbleEvent = (
|
||||
(eventType === EventType.RoomMessage && msgtype === MsgType.Emote) ||
|
||||
M_POLL_START.matches(eventType) ||
|
||||
LOCATION_EVENT_TYPE.matches(eventType) ||
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user