Auto identify file type as m.image.

This commit is contained in:
Black Hat
2018-07-17 16:18:50 +08:00
parent cf84320794
commit c10c3b1d1d
4 changed files with 32 additions and 11 deletions

View File

@@ -99,6 +99,7 @@ class Controller : public QObject {
public slots:
void postFile(QMatrixClient::Room* room, const QUrl& localFile,
const QUrl& mxcUrl);
QString getMIME(const QUrl& fileUrl) const;
};
#endif // CONTROLLER_H