Users currently receive (email) notifications of every single private message. There should be an option in the settings to only send notifications if/when the user is not currently on the private message page.
Methodology:
- Every time a user accesses the page, their last access time should be updated.
- Every time the AJAX on the page checks for new messages, their last access time should be updated
- *A setting will be created on the configuration page, asking if users should receive notifications for all messages, or only when they are away from the screen
- If the setting is to only send notifications when the user is not on the page, a setting will be provided to let admins set the number of seconds after which a user should be considered away.
- If the setting is to only send notifications when the user is not on the page, then when it comes time to send a notification, the user's last notification time will be checked. if it has been under the number of seconds set on the configuration page, no notification will be sent.
- Users will have the option to configure these settings for their own account in their account settings edit page.
Comments
Comment #2
zenimagine commentedComment #3
jaypanThis isn't a bug. Not sending the email if the user is logged is a feature.
I'll be adding this for phase 2 of the module.
Comment #4
jaypanComment #5
jaypanI've started working on this for version 8.x-2.x of the module. Note that email functionality will be removed from the module for version 8.x-2.x, and the module will be tied into the Message module, to let site builders determine how notifications should be handled.
Comment #7
jaypanI've committed this to the 8.x-2.x-dev branch. This feature will be part of the 8.x-2.0 branch when it eventually is released.
Comment #8
zenimagine commentedThank you, can you publish a roadmap for version 2 ?
Comment #9
jaypanIt's still much too early to say. My primary focus is on getting out the first version of the module. Once the first version has been released, I'll put together a roadmap.
Comment #10
jaypanComment #11
zenimagine commentedOne last question. How will the update from version 1 to version 2 happen?
Can we keep the current messages?
Comment #12
jaypanI don't have answers to those yet. I'll have to figure it out as I get closer. My plan is that there will be an upgrade path, but I'm still to early to guarantee/promise it.