Skip to content

Commit 2e5174f

Browse files
authored
fix(chat): Use the proper isTyping flag to render msg actions. (#1882)
1 parent 690c85f commit 2e5174f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/chat/chat-message.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export default class IgcChatMessageComponent extends LitElement {
175175
const isSent = this.message.sender === this._state.currentUserId;
176176
const hasText = this.message.text.trim();
177177
const hasAttachments = !isEmpty(this.message.attachments ?? []);
178-
const isTyping = this._state._isTyping;
178+
const isTyping = this._state.options?.isTyping;
179179
const isLastMessage = this.message === this._state.messages.at(-1);
180180
const resourceStrings = this._state.resourceStrings!;
181181

src/components/chat/chat-state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class ChatState {
4646
*/
4747
private _acceptedTypesCache: ChatAcceptedFileTypes | null = null;
4848

49-
public _isTyping = false;
49+
private _isTyping = false;
5050
private _lastTyped = Date.now();
5151

5252
public resourceStrings = IgcChatResourceStringEN;

0 commit comments

Comments
 (0)