swarmMessageReceived

Alice does
sendTrustRequest(alice_account, bob_username, "message as string")

Bob receives
incomingTrustRequest(bob_account, conversationId, alice_username, "message as string", received)

Bob does
sendMessage(bob_account, conversationId, "reply as string")

Alice receives
swarmMessageReceived(alice_account, conversationId, message)

according to xml specs, format is
<arg type="(sssa{ss}aa{ss}aa{ss}a{si})" name="message">

but nowhere in the message do I find the text sent ('reply as string"), only references to other objects…

How to get the text of the sent message?

1 Like

and

1 Like

ok, so the ā€œmessageā€ is a git commit in the git repo named ā€œconversationIdā€ found in ~/.local/share/jami/<accountId>/conversations/<conversationId>/ where I see 4 directories (admins, devices, invited, members) on one box and (admins, CRLs, devices, invited) on another box.

But still, where to look after the two text messages exchanged between Alice and Bob :frowning: ?

edit: the message is the message of the commit as seen with git log. Still is there an API to get them or is it need to use direct git commands and to parse the output of the git log call?

Hello,

The message content is supposed to be in the message map.

It’s recommended to not read the git repo yourself, as jami-core (the daemon) will transform it for the client (for instance, if the message was edited etc.).