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:
commit
939b803062
|
@ -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