Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to disable notification sounds from the UI #959

Closed
victornoel opened this issue Sep 22, 2023 · 15 comments · Fixed by #1076
Closed

Allow to disable notification sounds from the UI #959

victornoel opened this issue Sep 22, 2023 · 15 comments · Fixed by #1076
Labels
hacktoberfest Community support is welcome

Comments

@victornoel
Copy link

victornoel commented Sep 22, 2023

Describe the bug

I've disabled notification sound in the preferences:
image

But I am still hearing them (for chat messages, mentions, etc), it does "ding" every time, it's really annoying :P

I saw that there was this flag disableNotificationSound but I don't understand why we can't just disable it from the UI (because sometimes I would like to enable it.

Feature Proposal

Add an entry in the option menu to switch the value of disableNotificationSound directly from the UI.

Desktop (please complete the following information):

@IsmaelMartinez
Copy link
Owner

Hi @victornoel ,

The notifications you get, the annoying ones, is a different implementation. In most configurations the MS notifications do not work, or only partly works.

Can you see if you can enable the MS ones and use the disableNotificationSound and see if you get the desired result?

We could add the disableNotificationSound to the options menu, so you people can disable them without needing a restart. If that is the desired option, then we can change this to a feature request and it should be easy to implement.

Let me know and I can put some pointers in here.

@victornoel
Copy link
Author

Can you see if you can enable the MS ones and use the disableNotificationSound and see if you get the desired result?

So if I leave the MS ones disabled and add disableNotificationSound=true, then I don't get those "ding" noise everytime someone send me a message.

If I then enable the MS ones, it does not change anything, I don't get any sound either.

We could add the disableNotificationSound to the options menu, so you people can disable them without needing a restart. If that is the desired option, then we can change this to a feature request and it should be easy to implement.

This would be good enough for me ^^ too bad we can't just rely on the MS configuration, but I guess it's not as easy as it can seem :P

Thanks!

@IsmaelMartinez
Copy link
Owner

If you can change it to a feature (for the feature flag) someone might pick it up. I might look into it in the future, but don't know when. I can point you in the right direction if you're interested

@IsmaelMartinez IsmaelMartinez added the hacktoberfest Community support is welcome label Oct 7, 2023
@victornoel victornoel changed the title Cannot disable notification sounds from the UI Allow to disable notification sounds from the UI Oct 9, 2023
@victornoel
Copy link
Author

@IsmaelMartinez cool, I edited the description and title, I hope it's good enough to make it obvious that it's a feature request and to understand what needs to be done :)

@dxps
Copy link

dxps commented Jan 9, 2024

Same ”annoyance” that I'd like to get rid of.

Is there something I can do to remove that "ding" sound, please ❓
That disableNotificationSound=true can be set somewhere (for example, in ~/.var/app/com.github.IsmaelMartinez.teams_for_linux/config/teams-for-linux/Preferences file) ❔

Thanks!

@dxps
Copy link

dxps commented Jan 15, 2024

I really like this desktop app, but unfortunately that sound is very disturbing, especially when you're in a meeting and that background sound that we cannot control (whether to turn it off or its volume, as shown below) is getting very loud.

Talking about controlling its volume, if this app would be available here, that would still help.
image

Unfortunately, for now, unless there is a workaround, I have to stop using it and go back to that official PWA. 😢

@IsmaelMartinez
Copy link
Owner

IsmaelMartinez commented Jan 15, 2024 via email

@dxps
Copy link

dxps commented Jan 16, 2024

@IsmaelMartinez Thanks for the feedback! 🙏

I'm back and happy using it again. 🤗

Added --disableNotificationSound as a startup flag:

❯ cat /usr/share/applications/teams-for-linux.desktop
[Desktop Entry]
Name=Teams for Linux
Exec=/opt/teams-for-linux/teams-for-linux --disableNotificationSound %U
Terminal=false
Type=Application
Icon=teams-for-linux
StartupWMClass=teams-for-linux
Comment=Unofficial Microsoft Teams client for Linux using Electron. It uses the Web App and wraps it as a standalone application using Electron.
MimeType=x-scheme-handler/msteams;
Categories=Chat;Network;Office;

@IsmaelMartinez
Copy link
Owner

Added a PR to see if those notifications can be disabled via the UI. If anyone can check it by getting that branch and running yarn start that would be great.

image

@dxps
Copy link

dxps commented Jan 22, 2024

@IsmaelMartinez That's great! Thanks! 🙏

Started it (from feature/959-notifications-menu-options branch), and I'm planning to use it today, the whole day.
I'll get back with the feedback about the sound.

Meanwhile, would you mind clarifying what Disable sound (if not available) means?
And by Disable Flash you mean disable the notification popup, right?

@IsmaelMartinez
Copy link
Owner

From the config options:

  • disableNotificationSoundIfNotAvailable: 'Disables notification sound unless status is Available (e.g. while in a call, busy, etc.)
  • disableNotificationWindowFlash: 'A flag indicates whether to disable window flashing when there is a notification'

I haven't implemented nor use either, but hopefully this is working. I got mine running just now but waiting for calls/meetings

@dxps
Copy link

dxps commented Jan 22, 2024

Ah, so that not available refers to the user status. Maybe a more specific description helps, such as Disable sound when I'm not available (ex: busy, in a call).

It's still unclear to me what's that flashing effect you're referring to, but that's ok.

Used it for the whole day, and I'm glad that I got no sound at all.
Therefore, from my point of view, it's totally fine to merge this change and generate a new release.

And once again, thanks a lot for the feedback and help! 🙏

@IsmaelMartinez
Copy link
Owner

IsmaelMartinez commented Jan 23, 2024

The flashFrame is this. https://www.electronjs.org/docs/latest/api/browser-window#winflashframeflag

Basically if you got a new unread message/notification, the window will flash.

I have changed the descriptions a wee bit
image

@IsmaelMartinez
Copy link
Owner

Released under https://github.com/IsmaelMartinez/teams-for-linux/releases/tag/v1.4.5

@hosswald
Copy link

hosswald commented Feb 20, 2024

@IsmaelMartinez

The flashFrame is this. https://www.electronjs.org/docs/latest/api/browser-window#winflashframeflag

Basically if you got a new unread message/notification, the window will flash.

I have changed the descriptions a wee bit image

The quick setting boxes don't work for me (Linux Mint 21.3 Cinnamon, I tried the apt version 1.4.12 as well as flatpak 1.4.10). Clicking them has no effect, the settings remain off.
What works is enabling the settings (only tried for the flatpak version) via /home/username/.var/app/com.github.IsmaelMartinez.teams_for_linux/config/teams-for-linux/config.json
They then show as enabled in the taskbar menu, but can't be disabled there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest Community support is welcome
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants