[FIX] Fix out media from Matrix

This commit is contained in:
LDA 2024-09-13 14:29:51 +02:00
commit 9f1c2046fd
2 changed files with 10 additions and 0 deletions

View file

@ -119,6 +119,7 @@ MatrixCreateMedia(char *mxc, char *body, char *mime)
}
map = HashMapCreate();
JsonSet(map, JsonValueString(mime), 2, "info", "mimetype");
HashMapSet(map, "msgtype", JsonValueString(matrix_type));
HashMapSet(map, "mimetype", JsonValueString(mime));
HashMapSet(map, "body", JsonValueString(body));