diff --git a/src/app/features/settings/notifications/KeywordMessages.tsx b/src/app/features/settings/notifications/KeywordMessages.tsx
index 6404af75..ff84ce56 100644
--- a/src/app/features/settings/notifications/KeywordMessages.tsx
+++ b/src/app/features/settings/notifications/KeywordMessages.tsx
@@ -12,9 +12,7 @@ import {
getNotificationModeActions,
NotificationMode,
NotificationModeOptions,
- useNotificationModeActions,
} from '../../../hooks/useNotificationMode';
-import { NotificationModeSwitcher } from './NotificationModeSwitcher';
import { AsyncStatus, useAsyncCallback } from '../../../hooks/useAsyncCallback';
const NOTIFY_MODE_OPS: NotificationModeOptions = {
@@ -126,27 +124,6 @@ function KeywordCross({ pushRule }: PushRulesProps) {
);
}
-function KeywordModeSwitcher({ pushRule }: PushRulesProps) {
- const mx = useMatrixClient();
-
- const getModeActions = useNotificationModeActions(NOTIFY_MODE_OPS);
-
- const handleChange = useCallback(
- async (mode: NotificationMode) => {
- const actions = getModeActions(mode);
- await mx.setPushRuleActions(
- 'global',
- PushRuleKind.ContentSpecific,
- pushRule.rule_id,
- actions
- );
- },
- [mx, getModeActions, pushRule]
- );
-
- return ;
-}
-
export function KeywordMessagesNotifications() {
const { t } = useTranslation();
const pushRulesEvt = useAccountData(AccountDataEvent.PushRules);
@@ -179,7 +156,6 @@ export function KeywordMessagesNotifications() {
}
before={}
- after={}
/>
))}