Don't change the URL as you scroll around (#119)

Fix https://github.com/matrix-org/matrix-public-archive/issues/115

Reverting behavior originally introduced in https://github.com/matrix-org/matrix-public-archive/pull/71
This commit is contained in:
Eric Eastwood 2022-11-02 04:35:36 -05:00 committed by GitHub
parent 08254cbb49
commit 91d84fcc08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 8 deletions

View File

@ -264,14 +264,6 @@ class ArchiveRoomViewModel extends ViewModel {
// Update the calendar // Update the calendar
this._calendarViewModel.setActiveDate(currentTopPositionEventEntry.timestamp); this._calendarViewModel.setActiveDate(currentTopPositionEventEntry.timestamp);
// Update the URL
this.history.replaceUrlSilently(
this._matrixPublicArchiveURLCreator.archiveUrlForDate(
this._room.canonicalAlias || this._room.id,
new Date(currentTopPositionEventEntry.timestamp)
) + window.location.hash
);
} }
get dayTimestampFrom() { get dayTimestampFrom() {