Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Attach an onChange listener to the room's blacklist devices option #2817

Merged
merged 1 commit into from
Mar 25, 2019

Conversation

turt2live
Copy link
Member

Fixes element-hq/element-web#9235

The global option in user settings is unaffected by this bug. Users who have previously set the per-room flag without success can simply refresh the page and the change will be picked up. The bug here is that the current session would not update accordingly, however.

Introduced in #2523

Fixes element-hq/element-web#9235

The global option in user settings is unaffected by this bug. Users who have previously set the per-room flag without success can simply refresh the page and the change will be picked up. The bug here is that the current session would not update accordingly, however.

Introduced in #2523
Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, although in general it seems like things like this should go in listeners set on when the setting changes (ie. the UI just sets the setting and the Settings module handles effecting the settings change).

@turt2live
Copy link
Member Author

although in general it seems like things like this should go in listeners set on when the setting changes

Possibly, yes. This case is a bit awkward because there's 2 distinct places it gets updated, and they are both updated differently. Having more places where these settings were required (e2e dashboard?) would be a huge motivator to move them elsewhere imo.

@turt2live turt2live merged commit 0d5c986 into develop Mar 25, 2019
@turt2live turt2live deleted the travis/blacklist-unverified-devices branch March 25, 2019 15:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants