[ADD/WIP] Two-way replies

Call me Seija Kijin the way I apply my Reverse Ideology.
This commit is contained in:
LDA 2024-06-29 22:00:29 +02:00
commit c5df636bdb
5 changed files with 44 additions and 1 deletions

View file

@ -192,3 +192,14 @@ MatrixCreateReact(char *event, char *body)
return map;
}
void
MatrixSetReply(HashMap *map, char *event)
{
if (!map || !event)
{
return;
}
JsonValueFree(JsonSet(map, JsonValueString(event),
3, "m.relates_to", "m.in_reply_to", "event_id"
));
}