Revert change (Valere's review)

This commit is contained in:
Benoit Marty 2020-08-13 16:34:08 +02:00
parent 7a2454d816
commit d1b6cff663

View file

@ -139,7 +139,7 @@ class DevicesViewModel @AssistedInject constructor(
session.rx().liveUserCryptoDevices(session.myUserId)
.map { it.size }
.distinctUntilChanged()
.throttleFirst(5_000, TimeUnit.MILLISECONDS)
.throttleLast(5_000, TimeUnit.MILLISECONDS)
.subscribe {
// If we have a new crypto device change, we might want to trigger refresh of device info
session.cryptoService().fetchDevicesList(NoOpMatrixCallback())