analyze and format
This commit is contained in:
parent
a1f8120c59
commit
2e3d8205b1
|
@ -1432,13 +1432,11 @@ class Client {
|
|||
|
||||
void _addUpdate() {
|
||||
// we only want max. one update per 50ms
|
||||
if (_updateTimer == null) {
|
||||
_updateTimer = Timer(Duration(milliseconds: 50), () {
|
||||
_updateTimer ??= Timer(Duration(milliseconds: 50), () {
|
||||
onUpdate.add(true);
|
||||
_updateTimer = null;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
bool _disposed = false;
|
||||
|
||||
|
|
|
@ -106,7 +106,8 @@ class Room {
|
|||
if (!partial || client.database == null) {
|
||||
return;
|
||||
}
|
||||
final allStates = await client.database.getAllRoomStatesForRoom(client.id, id).get();
|
||||
final allStates =
|
||||
await client.database.getAllRoomStatesForRoom(client.id, id).get();
|
||||
for (final state in allStates) {
|
||||
final newState = Event.fromDb(state, this);
|
||||
setState(newState);
|
||||
|
|
Loading…
Reference in a new issue