Skip to content

Commit 35e0bea

Browse files
committed
fix: unit test and lint
1 parent 93a9102 commit 35e0bea

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

projects/stream-chat-angular/src/lib/attachment-configuration.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export class AttachmentConfigurationService<
228228
sizeRestriction = undefined;
229229
if (displayWarning) {
230230
console.warn(
231-
`Invalid value set for height/max-height and/or max-width for HTML element, this can cause scrolling issues inside the message list, more info https://getstream.io/chat/docs/sdk/angular/components/AttachmentListComponent/#image-and-video-sizing, attachment URL: ${url}`
231+
`Invalid value set for height/max-height and/or max-width for HTML element, this can cause scrolling issues inside the message list, more info https://getstream.io/chat/docs/sdk/angular/components/AttachmentListComponent/#image-and-video-sizing, attachment URL: ${url.toString()}`
232232
);
233233
}
234234
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,8 @@ describe('MessageActionsBoxComponent', () => {
434434
actionsService.messageToEdit$.subscribe(spy);
435435
queryEditAction()?.click();
436436
fixture.detectChanges();
437-
queryEditModal()?.close();
438437
spy.calls.reset();
438+
queryEditModal()?.close();
439439
fixture.detectChanges();
440440

441441
expect(component.isEditModalOpen).toBeFalse();

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ export class MessageListComponent
217217
this.messageActionsService.customActions$.subscribe((actions) => {
218218
if (actions !== this.customMessageActions) {
219219
this.customMessageActions = actions;
220+
this.cdRef.detectChanges();
220221
}
221222
})
222223
);

0 commit comments

Comments
 (0)