Skip to content

Commit 808a19d

Browse files
committed
fix lint issues
1 parent 80e7e06 commit 808a19d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

projects/stream-chat-angular/src/lib/message-input/message-input.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1484,7 +1484,7 @@ describe('MessageInputComponent', () => {
14841484
]);
14851485
});
14861486

1487-
it(`shouldn't emit message draft when loading a draft (avoid infinite loop)`, async () => {
1487+
it(`shouldn't emit message draft when loading a draft (avoid infinite loop)`, () => {
14881488
const channel = mockActiveChannel$.getValue();
14891489
attachmentService.createFromAttachments.and.callFake(() => {
14901490
attachmentService.attachmentUploads$.next([

projects/stream-chat-angular/src/lib/message-input/message-input.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,8 +651,7 @@ export class MessageInputComponent
651651
* @param draft DraftResponse to load into the message input.
652652
* - Draft messages are only supported for new messages, input is ignored in edit mode (if `message` input is set).
653653
* - If channel id doesn't match the active channel id, the draft is ignored.
654-
* - If a thread message is loaded, and the input isn't it thread mode or parent ids don't match, the draft is ignored.
655-
* @returns
654+
* - If a thread message is loaded, and the input isn't in thread mode or parent ids don't match, the draft is ignored.
656655
*/
657656
loadDraft(draft: DraftResponse) {
658657
if (

0 commit comments

Comments
 (0)