UNPKG

matrix-react-sdk

Version:
21 lines (20 loc) 683 B
import { SdkContextClass } from "../contexts/SDKContext"; /** * Tracks typing state for users. */ export default class TypingStore { private readonly context; private typingStates; constructor(context: SdkContextClass); /** * Clears all cached typing states. Intended to be called when the * MatrixClientPeg client changes. */ reset(): void; /** * Changes the typing status for the MatrixClientPeg user. * @param {string} roomId The room ID to set the typing state in. * @param {boolean} isTyping Whether the user is typing or not. */ setSelfTyping(roomId: string, threadId: string | null, isTyping: boolean): void; }