[MOD] Die on loopback stanza

Dirty hack to a memory problem.
This commit is contained in:
LDA 2024-06-19 13:45:26 +02:00
commit 14ebef53ce
7 changed files with 77 additions and 16 deletions

View file

@ -15,3 +15,19 @@ MatrixCreateNotice(char *body)
return map;
}
HashMap *
MatrixCreateMessage(char *body)
{
HashMap *map;
if (!body)
{
return NULL;
}
map = HashMapCreate();
HashMapSet(map, "msgtype", JsonValueString("m.text"));
HashMapSet(map, "body", JsonValueString(body));
return map;
}