[Timeline] 2 seconds cooldown for requestHistory
This commit is contained in:
parent
45744331ea
commit
b53d1d22c3
|
@ -70,6 +70,7 @@ class Timeline {
|
||||||
if (room.prev_batch.isEmpty || room.prev_batch == null) events = [];
|
if (room.prev_batch.isEmpty || room.prev_batch == null) events = [];
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
await Future.delayed(const Duration(seconds: 2));
|
||||||
_requestingHistoryLock = false;
|
_requestingHistoryLock = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue