mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
don't look in remoteEntries when already found
This commit is contained in:
parent
7197e5427f
commit
3d00881508
@ -323,7 +323,9 @@ export class Timeline {
|
||||
// before looking into remoteEntries, check the entries
|
||||
// that about to be added first
|
||||
let contextEvent = entries.find(e => e.id === id);
|
||||
contextEvent = this._findLoadedEventById(id);
|
||||
if (!contextEvent) {
|
||||
contextEvent = this._findLoadedEventById(id);
|
||||
}
|
||||
if (contextEvent) {
|
||||
entry.setContextEntry(contextEvent);
|
||||
// we don't emit an update here, as the add or update
|
||||
|
Loading…
Reference in New Issue
Block a user