web/roomview: add some readonly flags

This commit is contained in:
Tulir Asokan 2024-12-15 19:24:21 +02:00
parent bf192a64a5
commit c038b517c6

View file

@ -24,11 +24,11 @@ const noop = (name: string) => () => {
}
export class RoomContextData {
public timelineBottomRef: RefObject<HTMLDivElement | null> = createRef()
public readonly timelineBottomRef: RefObject<HTMLDivElement | null> = createRef()
public setReplyTo: (eventID: EventID | null) => void = noop("setReplyTo")
public setEditing: (evt: MemDBEvent | null) => void = noop("setEditing")
public insertText: (text: string) => void = noop("insertText")
public isEditing = new NonNullCachedEventDispatcher<boolean>(false)
public readonly isEditing = new NonNullCachedEventDispatcher<boolean>(false)
public ownMessages: EventRowID[] = []
public scrolledToBottom = true