-
Notifications
You must be signed in to change notification settings - Fork 16
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
Better notifications #14
Comments
Are notifications working? I don't get them to show, not even the sound. Can someone reproduce? |
@gpascualg We cannot get them to show either. |
Notification are silent by default, according the JS code here: Definition:
Implementation:
I guess we can delegate enabling notifications to the Extension settings on the Admin dashboard... thoughts on this @gpascualg? |
@Telematica Indeed, default behaviour is muted. We might have an option on the Admin dashboard to change the defaults, it would be a nice addition. The problem here, however, is that it seems that whether user-enabled or not, the sound doesn't play. Please bear in mind this code (specially notifications/audio) is screaming "refactor me!"... |
@gpascualg I'm interested to be involved on the Flarum development, and its community... I'm starting a new project, and I'm using Flarum as an alternative, hope it soon could be released as stable project (at least 1st version). I will not hesitate to perform a pull request on this. ty! |
Nice @Telematica, any PR would be much appreciated, I'm really busy right now and can't throw much time into this :( |
Ah... I've just reviewed the code and you were absolutely right! Regardless of user settings I am always passing We should modify flarum-ext-chat/js/forum/src/main.js Line 15 in 63847ba
To trigger notifications with this particular data (as they are new messages) and flarum-ext-chat/js/forum/src/main.js Line 36 in 63847ba
To disable them (old missatges fetched at start) Finally,
would change notify based on those EDIT: I might have some time to do this! Now that's clear what is failing I can easily solve it |
@gpascualg I'll be issuing a PR soon to fix notification and do the dashboard notification delegation stuff, so you can review it and merge if you think is OK. |
@Telematica Any news on the PR? |
Sorry, not yet, I've been a bit busy. But a new project is coming; in which I'll need to plug this ext to a plain Flarum instance, so I'll got a chance to make refactors and fixes for this. I'll keep you posted. |
It's okay! Keep an eye to the issue though, if I grasp a bit of time I might fix it myself, in which case I would close the issue |
Notifications right now are quite simple, we might improve them by
The text was updated successfully, but these errors were encountered: