Skip to content

Notifications system

Damien Brugne edited this page Jul 16, 2015 · 23 revisions

Notification types

Scheduler is responsible to send email/mobile notifications:

  • execution frequency: 10s
  • on each execution takes notifications to send by email/mobile older than: 10s

(@todo differentiate room/usermessage (=to get context) and other (=to allow user see notification by himself))

roompromote

Global type for roomop, roomdeop, roomban, roomdeban and roomkick.

  • Notification is systematically created on user action and sent to notification center.
  • Email/mobile:
    • Scheduler is set to run every 10s
    • Scheduler retrieve only notification older than 5s for sending
    • Only sent if user is offline at the moment of the user action and still offline on next scheduler run

usermessage

  • Browser : Never.
  • Email: Only if offline.
  • Mobile: Only if offline.
  • Delay: 5 minutes.

userinvite

  • Browser : Always.
  • Email: Only if offline.
  • Mobile: Only if offline.
  • Delay: None.

roommessage

  • Browser : Never.
  • Email: Only if offline.
  • Mobile: Only if offline.
  • Delay: 5 minutes.

roomjoined

  • Browser : Always.
  • Email: Only if offline.
  • Mobile: Only if offline.
  • Delay: None.

roomtopic

  • Browser : Always.
  • Email: Only if offline.
  • Mobile: Only if offline.
  • Delay: None.

usermention

  • Browser : Always.
  • Email: Only if offline.
  • Mobile: Only if offline.
  • Delay: None.

userpromote (userban / userdeban)

  • Browser : Always.
  • Email: Only if offline.
  • Mobile: Only if offline.
  • Delay: None.

Clone this wiki locally