summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorkrombel <krombel@krombel.de>2018-01-13 13:49:51 +0100
committermujx <mujx@users.noreply.github.com>2018-01-13 14:49:51 +0200
commitf87b8fe817c390ced781726422098b5a4af2b15a (patch)
tree7a148b4239e97c90b4bb8cdc0ac538f25eac38fc /include
parentProperly assign default value to QSharedPointer for Qt5.7 (diff)
downloadnheko-f87b8fe817c390ced781726422098b5a4af2b15a.tar.xz
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.


Diffstat (limited to 'include')
-rw-r--r--include/MatrixClient.h1
1 files changed, 1 insertions, 0 deletions
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<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);