mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 21:15:11 +00:00
[MOD] Carve the way to XMPP rich replies
Bifrost could *never*!
This commit is contained in:
parent
10e140e2a2
commit
fe77906cde
10 changed files with 126 additions and 18 deletions
15
src/Events.c
15
src/Events.c
|
|
@ -114,3 +114,18 @@ MatrixCreateMedia(char *mxc, char *body, char *mime)
|
|||
|
||||
return map;
|
||||
}
|
||||
|
||||
char *
|
||||
MatrixGetReply(HashMap *event)
|
||||
{
|
||||
if (!event)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return StrDuplicate(JsonValueAsString(
|
||||
JsonGet(event, 4, "content",
|
||||
"m.relates_to", "m.in_reply_to",
|
||||
"event_id")
|
||||
));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue