mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
store new gap entry on update so we can paginate again
This commit is contained in:
parent
cf39a57aa1
commit
d34a26f0da
@ -27,7 +27,8 @@ export default class GapTile extends SimpleTile {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
updateEntry(entry) {
|
updateEntry(entry, params) {
|
||||||
|
super.updateEntry(entry, params);
|
||||||
if (!entry.isGap) {
|
if (!entry.isGap) {
|
||||||
return UpdateAction.Remove();
|
return UpdateAction.Remove();
|
||||||
} else {
|
} else {
|
||||||
|
@ -41,7 +41,8 @@ export default class SimpleTile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// update received for already included (falls within sort keys) entry
|
// update received for already included (falls within sort keys) entry
|
||||||
updateEntry() {
|
updateEntry(entry) {
|
||||||
|
this._entry = entry;
|
||||||
return UpdateAction.Nothing();
|
return UpdateAction.Nothing();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user