aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-22 11:00:18 +0530
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-08-22 13:08:02 +0530
commitb8ffefd8145b36d5b9ab46f175a4a5f3d28ba0b4 (patch)
tree642a043660693ec2aa01c82e64d344eef98a01dd /src
parent5.6.1-nightly.35 [skip ci] (diff)
downloadferdium-app-b8ffefd8145b36d5b9ab46f175a4a5f3d28ba0b4.tar.gz
ferdium-app-b8ffefd8145b36d5b9ab46f175a4a5f3d28ba0b4.tar.zst
ferdium-app-b8ffefd8145b36d5b9ab46f175a4a5f3d28ba0b4.zip
fix: audio toggle is now decoupled from notification toggle
fixes #1691
Diffstat (limited to 'src')
-rw-r--r--src/stores/ServicesStore.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js
index 06f33cc1e..0708aaa95 100644
--- a/src/stores/ServicesStore.js
+++ b/src/stores/ServicesStore.js
@@ -918,6 +918,7 @@ export default class ServicesStore extends Store {
918 918
919 @action _toggleNotifications({ serviceId }) { 919 @action _toggleNotifications({ serviceId }) {
920 const service = this.one(serviceId); 920 const service = this.one(serviceId);
921 service.isNotificationEnabled = !service.isNotificationEnabled;
921 922
922 this.actions.service.updateService({ 923 this.actions.service.updateService({
923 serviceId, 924 serviceId,
@@ -930,8 +931,7 @@ export default class ServicesStore extends Store {
930 931
931 @action _toggleAudio({ serviceId }) { 932 @action _toggleAudio({ serviceId }) {
932 const service = this.one(serviceId); 933 const service = this.one(serviceId);
933 934 service.isMuted = !service.isMuted;
934 service.isNotificationEnabled = !service.isNotificationEnabled;
935 935
936 this.actions.service.updateService({ 936 this.actions.service.updateService({
937 serviceId, 937 serviceId,
@@ -944,6 +944,7 @@ export default class ServicesStore extends Store {
944 944
945 @action _toggleDarkMode({ serviceId }) { 945 @action _toggleDarkMode({ serviceId }) {
946 const service = this.one(serviceId); 946 const service = this.one(serviceId);
947 service.isDarkModeEnabled = !service.isDarkModeEnabled;
947 948
948 this.actions.service.updateService({ 949 this.actions.service.updateService({
949 serviceId, 950 serviceId,