mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-31 07:00:26 +00:00
Remove unused effect for setting
This commit is contained in:
@@ -28,8 +28,6 @@ import { Initializer } from "./initializer";
|
||||
import { MediaDevicesProvider } from "./livekit/MediaDevicesContext";
|
||||
import { widget } from "./widget";
|
||||
import { useTheme } from "./useTheme";
|
||||
import { showNonMemberTiles } from "./settings/settings";
|
||||
import { Config } from "./config/Config";
|
||||
|
||||
const SentryRoute = Sentry.withSentryRouting(Route);
|
||||
|
||||
@@ -73,13 +71,6 @@ export const App: FC<AppProps> = ({ history }) => {
|
||||
.catch(logger.error);
|
||||
});
|
||||
|
||||
// Update settings to use the non member tile information from the config if set
|
||||
useEffect(() => {
|
||||
if (loaded && Config.get().show_non_member_tiles) {
|
||||
showNonMemberTiles.setValue(true);
|
||||
}
|
||||
});
|
||||
|
||||
const errorPage = <CrashView />;
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user