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

zenimagine created an issue. See original summary.

zenimagine’s picture

Issue summary: View changes
jaypan’s picture

Category: Bug report » Feature request
Priority: Major » Normal
Status: Active » Postponed

This 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.

jaypan’s picture

Title: Email notification is sent even if the user is logged in » Add option for notifications to only be sent if the user is not on the private message page
Version: 8.x-1.x-dev » 8.x-2.x-dev
Assigned: Unassigned » jaypan
Issue summary: View changes
Status: Postponed » Active
jaypan’s picture

Issue summary: View changes

I'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.

  • Jaypan committed 9094cdc on 8.x-2.x
    Issue #2949093 by Jaypan: Add option for notifications to only be sent...
  • Jaypan committed e5fe2cb on 8.x-2.x
    Issue #2949093 by Jaypan: Add option for notifications to only be sent...
jaypan’s picture

Issue summary: View changes
Status: Active » Fixed

I'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.

zenimagine’s picture

Thank you, can you publish a roadmap for version 2 ?

jaypan’s picture

Status: Fixed » Active

It'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.

jaypan’s picture

Status: Active » Fixed
zenimagine’s picture

One last question. How will the update from version 1 to version 2 happen?

Can we keep the current messages?

jaypan’s picture

I 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.