mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
Don't show polls in timeline if polls are disabled (#7332)
This commit is contained in:
parent
5554d7fdc1
commit
c21895b5b4
1 changed files with 7 additions and 0 deletions
|
@ -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 (stateEventSingular.has(type) && ev.getStateKey() !== "") return undefined;
|
||||
return stateEventTileTypes[type];
|
||||
|
|
Loading…
Reference in a new issue