1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-12-05 15:22:09 +03:00

Fix effect of URL preview toggle not updating live (#8561)

* Remove unused state and fix canPeek

* Fix effect of URL preview toggle not updating live

* Remove stale context fields
This commit is contained in:
Michael Telatynski
2022-05-11 15:11:42 +01:00
committed by GitHub
parent 464eb93a44
commit 00984e4434
4 changed files with 11 additions and 35 deletions

View File

@@ -213,6 +213,7 @@ interface IEventIndexOpts {
*/
class TimelinePanel extends React.Component<IProps, IState> {
static contextType = RoomContext;
public context!: React.ContextType<typeof RoomContext>;
// a map from room id to read marker event timestamp
static roomReadMarkerTsMap: Record<string, number> = {};
@@ -242,6 +243,7 @@ class TimelinePanel extends React.Component<IProps, IState> {
constructor(props, context) {
super(props, context);
this.context = context;
debuglog("mounting");