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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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");