mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-06 22:10:38 +00:00
extend DBus signals with a field for mentions
This change affects the DBus signals `SyncMessageReceived` and `MessageReceived`. Mentions are represented as an array of structs. Each mention holds the name of the mentioned user, its position and length.
This commit is contained in:
parent
58d55ef807
commit
114b932386
4 changed files with 61 additions and 4 deletions
|
@ -223,7 +223,7 @@ isRegistred -> result<b>::
|
|||
|
||||
== Signals
|
||||
|
||||
SyncMessageReceived (timestamp<x>, sender<s>, destination<s>, groupId<ay>,message<s>, attachments<as>)::
|
||||
SyncMessageReceived (timestamp<x>, sender<s>, destination<s>, groupId<ay>, message<s>, mentions<a(sii)>, attachments<as>)::
|
||||
The sync message is received when the user sends a message from a linked device.
|
||||
|
||||
ReceiptReceived (timestamp<x>, sender<s>)::
|
||||
|
@ -232,11 +232,12 @@ ReceiptReceived (timestamp<x>, sender<s>)::
|
|||
|
||||
This signal is sent by each recipient (e.g. each group member) after the message was successfully delivered to the device
|
||||
|
||||
MessageReceived(timestamp<x>, sender<s>, groupId<ay>, message<s>, attachments<as>)::
|
||||
MessageReceived(timestamp<x>, sender<s>, groupId<ay>, message<s>, mentions<a(sii)>, attachments<as>)::
|
||||
* timestamp : Integer value that is used by the system to send a ReceiptReceived reply
|
||||
* sender : Phone number of the sender
|
||||
* groupId : Byte array representing the internal group identifier (empty when private message)
|
||||
* message : Message text
|
||||
* mentions : Struct array of mentions. A mention consists of a user name, its position in the message string and its length.
|
||||
* attachments : String array of filenames for the attachments. These files are located in the signal-cli storage and the current user needs to have read access there
|
||||
|
||||
This signal is received whenever we get a private message or a message is posted in a group we are an active member
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue