Skip to content

Notifications system

Yoann Fuks edited this page Sep 28, 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: 5mn (10s on test)

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

roompromote

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

  • Notification is always created on user action and sent to notification center (except if user has promoted himself).
  • Email/mobile: only sent if user is offline at the moment of the user action and still offline on next scheduler run

usermessage

  • Notification is created on user action only if user is offline and no other usermessage notification was created for the same onetoone in last: 5mn (30s on test). Not created if user is the message sender.
  • Email/mobile: same as roompromote

roommessage

  • Notification is created on user action only for offline users and if no other roommessage notification was created for the same room in last: 5mn (30s on test)
  • Email/mobile: same as roompromote

roomjoined

  • Notification is created and send to browser on user action if no other roomjoined notification was created for the same room and user in last: 5mn (30s on test)
  • Email/mobile: same as roompromote

roomtopic

  • Notification is always created and send to browser on user action
  • Email/mobile: same as roompromote

usermention

  • Notification is always created and send to browser on user action except if the user has mentionned himself.
  • Email/mobile: same as roompromote

roomrequest

Global type for roomjoinrequest, roomallowed and roomrefuse.

  • Notification is always created on user action and sent to notification center
  • Email/mobile: same as roompromote

Desktop notification

Each time the browser received a "pushed notification from server", if the Desktop preference is checked a desktop notification is displayed. Outside notifications system when a user received a user:message and this browser or browser isn't focus, a desktop notification is triggered. Two desktops notifications for the same event type could not be triggered under 1mn between.