Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Disable bubbles for broadcasts #9860

Merged
merged 2 commits into from
Jan 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/utils/EventRenderingUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/utils/EventRenderingUtils-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe("getEventDisplayInfo", () => {
"isInfoMessage": false,
"isLeftAlignedBubbleMessage": false,
"isSeeingThroughMessageHiddenForModeration": false,
"noBubbleEvent": false,
"noBubbleEvent": true,
}
`);
});
Expand All @@ -46,7 +46,7 @@ describe("getEventDisplayInfo", () => {
"isInfoMessage": true,
"isLeftAlignedBubbleMessage": false,
"isSeeingThroughMessageHiddenForModeration": false,
"noBubbleEvent": false,
"noBubbleEvent": true,
}
`);
});
Expand Down