mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
Add a comment about the SettingsStore being slow
This commit is contained in:
parent
f2468f562d
commit
ebdba32393
1 changed files with 3 additions and 1 deletions
|
@ -38,7 +38,9 @@ function memberEventDiff(ev) {
|
|||
}
|
||||
|
||||
export default function shouldHideEvent(ev) {
|
||||
// Wrap getValue() for readability
|
||||
// Wrap getValue() for readability. Calling the SettingsStore can be
|
||||
// fairly resource heavy, so the checks below should avoid hitting it
|
||||
// where possible.
|
||||
const isEnabled = (name) => SettingsStore.getValue(name, ev.getRoomId());
|
||||
|
||||
// Hide redacted events
|
||||
|
|
Loading…
Reference in a new issue