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

Commit c21895b

Browse files
authored
Don't show polls in timeline if polls are disabled (#7332)
1 parent 5554d7f commit c21895b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/components/views/rooms/EventTile.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,13 @@ export function getHandlerTile(ev) {
172172
}
173173
}
174174

175+
if (
176+
POLL_START_EVENT_TYPE.matches(type) &&
177+
!SettingsStore.getValue("feature_polls")
178+
) {
179+
return undefined;
180+
}
181+
175182
if (ev.isState()) {
176183
if (stateEventSingular.has(type) && ev.getStateKey() !== "") return undefined;
177184
return stateEventTileTypes[type];

0 commit comments

Comments
 (0)