mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
Disable bubbles for broadcasts (#9860)
This commit is contained in:
parent
2a4a7eacff
commit
f34c1609c3
@ -94,7 +94,8 @@ export function getEventDisplayInfo(
|
||||
(eventType === EventType.RoomMessage && msgtype === MsgType.Emote) ||
|
||||
M_POLL_START.matches(eventType) ||
|
||||
M_BEACON_INFO.matches(eventType) ||
|
||||
isLocationEvent(mxEvent);
|
||||
isLocationEvent(mxEvent) ||
|
||||
eventType === VoiceBroadcastInfoEventType;
|
||||
|
||||
// If we're showing hidden events in the timeline, we should use the
|
||||
// source tile when there's no regular tile for an event and also for
|
||||
|
@ -32,7 +32,7 @@ describe("getEventDisplayInfo", () => {
|
||||
"isInfoMessage": false,
|
||||
"isLeftAlignedBubbleMessage": false,
|
||||
"isSeeingThroughMessageHiddenForModeration": false,
|
||||
"noBubbleEvent": false,
|
||||
"noBubbleEvent": true,
|
||||
}
|
||||
`);
|
||||
});
|
||||
@ -46,7 +46,7 @@ describe("getEventDisplayInfo", () => {
|
||||
"isInfoMessage": true,
|
||||
"isLeftAlignedBubbleMessage": false,
|
||||
"isSeeingThroughMessageHiddenForModeration": false,
|
||||
"noBubbleEvent": false,
|
||||
"noBubbleEvent": true,
|
||||
}
|
||||
`);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user