You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-19 20:23:18 +03:00
Add a comment about the SettingsStore being slow
This commit is contained in:
@ -38,7 +38,9 @@ function memberEventDiff(ev) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default function shouldHideEvent(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());
|
const isEnabled = (name) => SettingsStore.getValue(name, ev.getRoomId());
|
||||||
|
|
||||||
// Hide redacted events
|
// Hide redacted events
|
||||||
|
Reference in New Issue
Block a user