summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorkrombel <krombel@krombel.de>2018-01-11 15:33:50 +0100
committermujx <mujx@users.noreply.github.com>2018-01-11 16:33:50 +0200
commit0570135253ad6460c56e23ed4a4e995750cb9994 (patch)
treef3ee0e309a2195f23d0e291b0ac5277e1a34afc2 /include
parentRemove Connection header (diff)
downloadnheko-0570135253ad6460c56e23ed4a4e995750cb9994.tar.xz
Filter out content in sync that is currently unhandled (#198)
I had a look at sync.cpp and checked which parts of the sync response
are currently handled and which not. As I think it is unnecessary to let the 
unhandled data be transmitted without being handled I added these filters.

In the same term I increased the timeout server-side to 30s as Riot
defaults to this value as well. Especially now when a lots of presence-updates 
are not send anymore this value is more relevant.

It is now also possible to use a filter that is defined in`client/sync_filter`.
Advanced users might want to set an own filter here.

[ci skip]
Diffstat (limited to 'include')
-rw-r--r--include/MatrixClient.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/MatrixClient.h b/include/MatrixClient.h

index df21ccdb..66b30dce 100644 --- a/include/MatrixClient.h +++ b/include/MatrixClient.h
@@ -159,4 +159,7 @@ private: // Token to be used for the next sync. QString next_batch_; + + // filter to be send as filter-param for (initial) /sync requests + QString filter_; };