mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-24 13:09:24 +01:00
Fix request history
This commit is contained in:
parent
c3421f7d54
commit
795d19ee01
@ -81,9 +81,11 @@ class _ChatState extends State<_Chat> {
|
|||||||
final int _loadHistoryCount = 100;
|
final int _loadHistoryCount = 100;
|
||||||
|
|
||||||
void requestHistory() async {
|
void requestHistory() async {
|
||||||
setState(() => this._loadingHistory = true);
|
if (timeline.events.last.type != EventTypes.RoomCreate) {
|
||||||
await timeline.requestHistory(historyCount: _loadHistoryCount);
|
setState(() => this._loadingHistory = true);
|
||||||
setState(() => this._loadingHistory = false);
|
await timeline.requestHistory(historyCount: _loadHistoryCount);
|
||||||
|
setState(() => this._loadingHistory = false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
Loading…
Reference in New Issue
Block a user