Remove show new post notifs setting. (#2675)

- Fixes #2667
This commit is contained in:
Dessalines 2024-08-27 15:00:24 -04:00 committed by GitHub
parent d69dd1531b
commit d4b6f29729
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -113,7 +113,6 @@ interface SettingsState {
bot_account?: boolean;
show_bot_accounts?: boolean;
show_read_posts?: boolean;
show_new_post_notifs?: boolean;
discussion_languages?: number[];
open_links_in_new_tab?: boolean;
};
@ -1093,23 +1092,6 @@ export class Settings extends Component<SettingsRouteProps, SettingsState> {
</label>
</div>
</div>
<div className="input-group mb-3">
<div className="form-check">
<input
className="form-check-input"
id="user-show-new-post-notifs"
type="checkbox"
checked={this.state.saveUserSettingsForm.show_new_post_notifs}
onChange={linkEvent(this, this.handleShowNewPostNotifs)}
/>
<label
className="form-check-label"
htmlFor="user-show-new-post-notifs"
>
{I18NextService.i18n.t("show_new_post_notifs")}
</label>
</div>
</div>
<div className="input-group mb-3">
<div className="form-check">
<input
@ -1496,14 +1478,6 @@ export class Settings extends Component<SettingsRouteProps, SettingsState> {
);
}
handleShowNewPostNotifs(i: Settings, event: any) {
i.setState(
s => (
(s.saveUserSettingsForm.show_new_post_notifs = event.target.checked), s
),
);
}
handleOpenInNewTab(i: Settings, event: any) {
i.setState(
s => (