Don't show polls in timeline if polls are disabled (#7332)
This commit is contained in:
@@ -172,6 +172,13 @@ export function getHandlerTile(ev) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (
|
||||||
|
POLL_START_EVENT_TYPE.matches(type) &&
|
||||||
|
!SettingsStore.getValue("feature_polls")
|
||||||
|
) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
if (ev.isState()) {
|
if (ev.isState()) {
|
||||||
if (stateEventSingular.has(type) && ev.getStateKey() !== "") return undefined;
|
if (stateEventSingular.has(type) && ev.getStateKey() !== "") return undefined;
|
||||||
return stateEventTileTypes[type];
|
return stateEventTileTypes[type];
|
||||||
|
|||||||
Reference in New Issue
Block a user