[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

@ -16,3 +16,12 @@ of Parsee. May occasionally deadlock.
*NONE*
#### Deprecated features
*NONE*
### v0.1.1[star-of-hope] <X/X/XXXX>
Fixes some media metadata things.
#### New things
*NONE*
#### Bugfixes
- Adds more information to media events so that clients can behave.
#### Deprecated features
*NONE*

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));