[MOD] Add width/height information when possible

This commit is contained in:
LDA 2024-09-30 06:11:31 +02:00
commit d989331716
5 changed files with 103 additions and 3 deletions

View file

@ -419,10 +419,13 @@ end_error:
if (oob_data)
{
FileInfo *info = FileInfoFromXMPP(stanza);
mxc = ASReupload(args->config, oob_data->data, &mime);
if (mxc)
{
content = MatrixCreateMedia(mxc, data->data, mime);
content = MatrixCreateMedia(
mxc, data->data, mime, info
);
HashMapSet(content,
"at.kappach.at.parsee.external",
@ -436,6 +439,7 @@ end_error:
);
Free(mxc);
}
FileInfoFree(info);
Free(mime);
}
}