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

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
justjanne committed Jun 28, 2023
1 parent adb1495 commit ccd2cbd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
1 change: 1 addition & 0 deletions res/css/_components.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@
@import "./views/settings/_JoinRuleSettings.pcss";
@import "./views/settings/_KeyboardShortcut.pcss";
@import "./views/settings/_LayoutSwitcher.pcss";
@import "./views/settings/_NotificationPusherSettings.pcss";
@import "./views/settings/_NotificationSettings2.pcss";
@import "./views/settings/_Notifications.pcss";
@import "./views/settings/_PhoneNumbers.pcss";
Expand Down
10 changes: 10 additions & 0 deletions res/css/views/settings/_NotificationPusherSettings.pcss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.mx_NotificationPusherSettings {

This comment has been minimized.

Copy link
@t3chguy

t3chguy Jun 28, 2023

Member

copyright please

This comment has been minimized.

Copy link
@justjanne

justjanne Jun 28, 2023

Author Contributor

You've got better eyes than I do^^ I always miss that 🙈

.mx_NotificationPusherSettings_description {
color: $primary-content;
}

.mx_NotificationPusherSettings_detail {
margin-top: -4px;
margin-bottom: 12px;
}
}
11 changes: 0 additions & 11 deletions res/css/views/settings/_NotificationSettings2.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,3 @@ limitations under the License.
}
}
}

.mx_NotificationPusherSettings {
.mx_NotificationPusherSettings_description {
color: $primary-content;
}

.mx_NotificationPusherSettings_detail {
margin-top: -4px;
margin-bottom: 12px;
}
}
4 changes: 1 addition & 3 deletions src/models/notificationsettings/toNotificationSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ function isMuted(rules: (IPushRule | null | undefined | false)[]): boolean {
continue;
}
const actions = NotificationUtils.decodeActions(rule.actions);
if (actions !== null && !actions.notify
&& actions.highlight !== true
&& actions.sound === undefined) {
if (actions !== null && !actions.notify && actions.highlight !== true && actions.sound === undefined) {
return true;
}
}
Expand Down

0 comments on commit ccd2cbd

Please sign in to comment.