mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 00:16:15 -04:00
Refactor chat notifications and the chatNewMessage hook
This commit is contained in:
parent
8406cc95ab
commit
bcb92f25a6
2 changed files with 55 additions and 67 deletions
|
@ -148,9 +148,14 @@ Called from: src/static/js/chat.js
|
|||
|
||||
Things in context:
|
||||
|
||||
1. msg - The message object
|
||||
1. authorName - The user that wrote this message
|
||||
2. author - The authorID of the user that wrote the message
|
||||
2. text - the message text
|
||||
3. 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
|
||||
4. timeStr - the timestamp as a formatted string
|
||||
|
||||
This hook is called on the client side whenever a user recieves a chat message from the server. This 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.
|
||||
|
||||
## collectContentPre
|
||||
Called from: src/static/js/contentcollector.js
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue