Merge branch 'timeline-fix-add-cooldown' into 'master'

[Timeline] 2 seconds cooldown for requestHistory

See merge request famedly/famedlysdk!158
This commit is contained in:
Christian Pauly 2020-01-08 14:24:17 +00:00
commit 939b803062

View file

@ -70,6 +70,7 @@ class Timeline {
if (room.prev_batch.isEmpty || room.prev_batch == null) events = [];
},
);
await Future.delayed(const Duration(seconds: 2));
_requestingHistoryLock = false;
}
}