diff options
| author | krombel <krombel@krombel.de> | 2018-01-11 15:33:50 +0100 |
|---|---|---|
| committer | mujx <mujx@users.noreply.github.com> | 2018-01-11 16:33:50 +0200 |
| commit | 0570135253ad6460c56e23ed4a4e995750cb9994 (patch) | |
| tree | f3ee0e309a2195f23d0e291b0ac5277e1a34afc2 /src/MatrixClient.cc | |
| parent | Remove Connection header (diff) | |
| download | nheko-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 'src/MatrixClient.cc')
| -rw-r--r-- | src/MatrixClient.cc | 38 |
1 files changed, 29 insertions, 9 deletions
diff --git a/src/MatrixClient.cc b/src/MatrixClient.cc |
