mirror of
https://github.com/chatmail/core.git
synced 2026-04-18 05:56:31 +03:00
add option to trigger an info-message from an webxdc-update
This commit is contained in:
@@ -28,7 +28,11 @@ Webxdc apps are usually shared in a chat and run independently on each peer.
|
||||
To get a shared state, the peers use `sendUpdate()` to send updates to each other.
|
||||
|
||||
- `update`: an object with the following fields:
|
||||
`update.payload`: any javascript primitive, array or object.
|
||||
- `update.payload`: any javascript primitive, array or object.
|
||||
- `update.info`: optional, short, informational message that will be added to the chat,
|
||||
eg. "Alice voted" or "Bob scored 123 in MyGame";
|
||||
usually only one line of text is shown,
|
||||
use this option sparingly to not spam the chat.
|
||||
- `descr`: short, human-readable description what this update is about.
|
||||
this is shown eg. as a fallback text in an email program.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user