mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 16:55:10 +00:00
[FIX] Fix out media from Matrix
This commit is contained in:
parent
4164eb5ed2
commit
9f1c2046fd
2 changed files with 10 additions and 0 deletions
|
|
@ -16,3 +16,12 @@ of Parsee. May occasionally deadlock.
|
||||||
*NONE*
|
*NONE*
|
||||||
#### Deprecated features
|
#### Deprecated features
|
||||||
*NONE*
|
*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*
|
||||||
|
|
|
||||||
|
|
@ -119,6 +119,7 @@ MatrixCreateMedia(char *mxc, char *body, char *mime)
|
||||||
}
|
}
|
||||||
|
|
||||||
map = HashMapCreate();
|
map = HashMapCreate();
|
||||||
|
JsonSet(map, JsonValueString(mime), 2, "info", "mimetype");
|
||||||
HashMapSet(map, "msgtype", JsonValueString(matrix_type));
|
HashMapSet(map, "msgtype", JsonValueString(matrix_type));
|
||||||
HashMapSet(map, "mimetype", JsonValueString(mime));
|
HashMapSet(map, "mimetype", JsonValueString(mime));
|
||||||
HashMapSet(map, "body", JsonValueString(body));
|
HashMapSet(map, "body", JsonValueString(body));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue