diff --git a/CHANGELOG.md b/CHANGELOG.md index 5762504..be12615 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,3 +16,12 @@ of Parsee. May occasionally deadlock. *NONE* #### Deprecated features *NONE* + +### v0.1.1[star-of-hope] +Fixes some media metadata things. +#### New things +*NONE* +#### Bugfixes +- Adds more information to media events so that clients can behave. +#### Deprecated features +*NONE* diff --git a/src/Events.c b/src/Events.c index e625d07..85b1e37 100644 --- a/src/Events.c +++ b/src/Events.c @@ -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));