hooks: allow to set the duration of the gritter notification when a new chat message arrives

This is done adding a new "duration" parameter to the chatNewMessage() client
side hook.
This commit is contained in:
Neil Oosten 2016-10-07 21:14:23 -04:00 committed by muxator
parent 8a01a5e437
commit 7a999ee398
2 changed files with 5 additions and 3 deletions

View file

@ -223,6 +223,7 @@ Things in context:
4. sticky (boolean) - if you want the gritter notification bubble to fade out on its own or just sit there
5. timestamp - the timestamp of the chat message
6. timeStr - the timestamp as a formatted string
7. duration - for how long in milliseconds should the gritter notification appear (0 to disable)
This hook is called on the client side whenever a chat message is received from the server. It can be used to create different notifications for chat messages.