Enable the polls feature (#7581)

This commit is contained in:
Andy Balaam 2022-01-20 09:40:47 +00:00 committed by GitHub
parent a7a7cb56fe
commit c4fc20018d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 19 additions and 59 deletions

View file

@ -179,13 +179,6 @@ export function getHandlerTile(ev: MatrixEvent): string {
}
}
if (
M_POLL_START.matches(type) &&
!SettingsStore.getValue("feature_polls")
) {
return undefined;
}
if (ev.isState()) {
if (stateEventSingular.has(type) && ev.getStateKey() !== "") return undefined;
return stateEventTileTypes[type];