mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 10:33:41 -05:00
web/roomview: add some readonly flags
This commit is contained in:
parent
bf192a64a5
commit
c038b517c6
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue