-
Notifications
You must be signed in to change notification settings - Fork 184
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
Discord do not show badges for all new message, even with setting activated. #1370
Comments
Could you provide OS info? I cannot reproduce this on Fedora Linux and Windows 10. |
I use Ubuntu 23.04. Just note that if someone talk to me in a 1-1 discussion it works and if in the server the message is a reply to one of my message it works too or if it is a @Myname even in a server chat it works too. Only "basic" messages in a server don't work. |
Hi, This problem exists only if you receive a notification on a server that is not currently opened in Discord. The recipe is looking at the This can be fixed using the |
Using @Mickhopes method in a discord recipe fixed my and my friend issue. |
@gauchya having the same problem. New to Ferdium so how/what/where do I change the recipe? |
I'm guessing this involves editing the webview.js for the Discord service, this part? const indirectCountPerServer = document.querySelectorAll(
'[class*="modeUnread-"]',
).length; Would you be able to show how you used document.title to fix this? I don't know enough javascript to figure this out currently :( @chaudron I found the file to edit at this path (for windows): |
To find the folder containing the recipes, you go to Settings > Advanced and then on the bottom Open Service Recipes folder. In this folder you have to edit discord/webview.js and replace: const indirectCountPerServer = document.querySelectorAll(
'[class*="modeUnread-"]',
).length; with const indirectCountPerServer = document.title.search("•") != -1 ? 1 : 0; |
There's another issue where direct messages, either from a server or in DMs, are not causing Ferdium to add a badge to Discord's icon. The solution is to change the following code in
to:
(Note that change from hyphens to underscores in the class names.) |
Hi @briankendall and @Mickhopes Hope you don't mind I opened a pull request to get discord notifications fixed using your advice. Thanks |
It is done |
Closing since the fix in ferdium/ferdium-recipes#461 was merged |
Preflight Checklist
Ferdium Version
6.4.1-beta.2
Recipe Name
Discrod
Recipe Version
1.8.0
Last Known working version of the recipe
No response
Steps to reproduce
Expected Behavior
A "New message badge" should appear when a message is received in any server with discord notification on when the settings is activated.
Actual Behavior
No Ferdium notification or new message badge.
Screenshots
New message, no badge.
Additional Information
No response
The text was updated successfully, but these errors were encountered: