mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 22:55:11 +00:00
[ADD/WIP] Two-way replies
Call me Seija Kijin the way I apply my Reverse Ideology.
This commit is contained in:
parent
8472ada953
commit
c5df636bdb
5 changed files with 44 additions and 1 deletions
11
src/Events.c
11
src/Events.c
|
|
@ -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"
|
||||
));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue