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

Commit

Permalink
Disable bubbles for broadcasts (#9860)
Browse files Browse the repository at this point in the history
  • Loading branch information
weeman1337 authored Jan 5, 2023
1 parent 2a4a7ea commit f34c160
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
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

0 comments on commit f34c160

Please sign in to comment.