From f87b8fe817c390ced781726422098b5a4af2b15a Mon Sep 17 00:00:00 2001 From: krombel Date: Sat, 13 Jan 2018 13:49:51 +0100 Subject: 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. --- include/MatrixClient.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/MatrixClient.h b/include/MatrixClient.h index 1a8ff12c..826b4e18 100644 --- a/include/MatrixClient.h +++ b/include/MatrixClient.h @@ -64,6 +64,7 @@ public: void uploadAudio(const QString &roomid, const QSharedPointer 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); -- cgit 1.4.1