[MOD] Carve the way to XMPP rich replies

Bifrost could *never*!
This commit is contained in:
LDA 2024-06-23 23:46:46 +02:00
commit fe77906cde
10 changed files with 126 additions and 18 deletions

View file

@ -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")
));
}