From b53d1d22c35b9d6e3f08e08ed945d325c2c9be16 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Wed, 8 Jan 2020 14:20:42 +0000 Subject: [PATCH] [Timeline] 2 seconds cooldown for requestHistory --- lib/src/timeline.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/timeline.dart b/lib/src/timeline.dart index 4990b35c..18877fab 100644 --- a/lib/src/timeline.dart +++ b/lib/src/timeline.dart @@ -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; } }