mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
can only look in remote entries here as PEEs never return an event id
This commit is contained in:
parent
5e9ce365bf
commit
2da7ef4280
@ -102,7 +102,7 @@ export class Timeline {
|
|||||||
if (!foundInLocalEntries && pe.relatedEventId) {
|
if (!foundInLocalEntries && pe.relatedEventId) {
|
||||||
// TODO: ideally iterate in reverse as target is likely to be most recent,
|
// TODO: ideally iterate in reverse as target is likely to be most recent,
|
||||||
// but not easy through ObservableList contract
|
// but not easy through ObservableList contract
|
||||||
for (const entry of this._allEntries) {
|
for (const entry of this._remoteEntries) {
|
||||||
if (pe.relatedEventId === entry.id) {
|
if (pe.relatedEventId === entry.id) {
|
||||||
const params = updater(entry);
|
const params = updater(entry);
|
||||||
if (params) {
|
if (params) {
|
||||||
|
Loading…
Reference in New Issue
Block a user