Upload filter automatically and use filter_id (#201)

When a custom filter is inserted into nheko.conf or there was no filter
defined yet the default filter gets automatically uploaded.
After a successful upload the server-side generated filter-id is used.

This is done async as it is just an enhancement and it is not required
to upload the filter before the first request.
This commit is contained in:
krombel 2018-01-13 13:49:51 +01:00 committed by mujx
parent 396becbaa7
commit f87b8fe817
2 changed files with 57 additions and 0 deletions

View file

@ -64,6 +64,7 @@ public:
void uploadAudio(const QString &roomid,
const QSharedPointer<QIODevice> data,
const QString &filename);
void uploadFilter(const QString &filter) noexcept;
void joinRoom(const QString &roomIdOrAlias);
void leaveRoom(const QString &roomId);
void sendTypingNotification(const QString &roomid, int timeoutInMillis = 20000);