From 47fe76336a556c0fd27af5dc2b8ec56bc7064763 Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Wed, 4 Jan 2023 14:26:54 +0100 Subject: [PATCH 1/2] Disable bubbles for broadcasts --- src/utils/EventRenderingUtils.ts | 3 ++- test/utils/EventRenderingUtils-test.ts | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/utils/EventRenderingUtils.ts b/src/utils/EventRenderingUtils.ts index 49e63307833..ad8061973b3 100644 --- a/src/utils/EventRenderingUtils.ts +++ b/src/utils/EventRenderingUtils.ts @@ -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 diff --git a/test/utils/EventRenderingUtils-test.ts b/test/utils/EventRenderingUtils-test.ts index 2f07822489d..4416a58386d 100644 --- a/test/utils/EventRenderingUtils-test.ts +++ b/test/utils/EventRenderingUtils-test.ts @@ -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, } `); }); From ad01d8ae213805570af8382daf4b1a3362935bcc Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Wed, 4 Jan 2023 15:45:03 +0100 Subject: [PATCH 2/2] Trigger CI