summary refs log tree commit diff
path: root/src/MainWindow.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-04-30 22:42:56 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-04-30 22:42:56 +0200
commite6fcccc8bde60c84157e0a3adbae01b87c621b7a (patch)
tree8a10f5e34260acac623951a5d39245050cf06225 /src/MainWindow.cpp
parentFix spacing of typing notifications (diff)
downloadnheko-e6fcccc8bde60c84157e0a3adbae01b87c621b7a.tar.xz
Don't store pending receipts in cache
We don't get notified for every message. Sometimes we only get a read
receipt for the newest message, which means old read receipts accumulate
in the database. This least to some considerable CPU overhead, when
checking if the timeline should be notified for new read receipts.
Instead just always notify, since that has far less overhead in the
worst case and doesn't need complicated cache cleanup.

The old pending_receipts db is not removed for now. It should still have
minimal storage overhead and we don't have a good mechanism for cache
format upgrades atm.
Diffstat (limited to 'src/MainWindow.cpp')
0 files changed, 0 insertions, 0 deletions