mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
doc: fix numbering in chatNewMessage() client hook parameters
This was originally introduced in bcb92f25a6
("Refactor chat notifications and
the chatNewMessage hook") from 2013-03-19.
This commit is contained in:
parent
14ae2ee950
commit
8a01a5e437
1 changed files with 4 additions and 4 deletions
8
doc/api/hooks_client-side.md
Normal file → Executable file
8
doc/api/hooks_client-side.md
Normal file → Executable file
|
@ -219,10 +219,10 @@ Things in context:
|
||||||
|
|
||||||
1. authorName - The user that wrote this message
|
1. authorName - The user that wrote this message
|
||||||
2. author - The authorID of the user that wrote the message
|
2. author - The authorID of the user that wrote the message
|
||||||
2. text - the message text
|
3. text - the message text
|
||||||
3. sticky (boolean) - if you want the gritter notification bubble to fade out on its own or just sit there
|
4. sticky (boolean) - if you want the gritter notification bubble to fade out on its own or just sit there
|
||||||
3. timestamp - the timestamp of the chat message
|
5. timestamp - the timestamp of the chat message
|
||||||
4. timeStr - the timestamp as a formatted string
|
6. timeStr - the timestamp as a formatted string
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue