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:
parent
464eb93a44
commit
00984e4434
4 changed files with 11 additions and 35 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue