diff --git a/packages/core/src/main/conversation/message/MessageService.test.node.ts b/packages/core/src/main/conversation/message/MessageService.test.node.ts index 28c25e6be8a..1561af37df5 100644 --- a/packages/core/src/main/conversation/message/MessageService.test.node.ts +++ b/packages/core/src/main/conversation/message/MessageService.test.node.ts @@ -220,7 +220,7 @@ describe('MessageService', () => { clientId, conversationId, jasmine.any(Object), - undefined, + true, ); }); @@ -238,7 +238,7 @@ describe('MessageService', () => { clientId, conversationId, jasmine.any(Object), - undefined, + true, ); }); @@ -247,11 +247,7 @@ describe('MessageService', () => { spyOn(apiClient.broadcast.api, 'postBroadcastMessage').and.returnValue(Promise.resolve({} as ClientMismatch)); await messageService.sendMessage(clientId, generateRecipients(generateUsers(3, 3)), createMessage(message)); - expect(apiClient.broadcast.api.postBroadcastMessage).toHaveBeenCalledWith( - clientId, - jasmine.any(Object), - undefined, - ); + expect(apiClient.broadcast.api.postBroadcastMessage).toHaveBeenCalledWith(clientId, jasmine.any(Object), true); }); it('should broadcast protobuf message if no conversationId is given', async () => { @@ -267,7 +263,7 @@ describe('MessageService', () => { expect(apiClient.broadcast.api.postBroadcastProtobufMessage).toHaveBeenCalledWith( clientId, jasmine.any(Object), - undefined, + true, ); }); @@ -282,7 +278,7 @@ describe('MessageService', () => { clientId, conversationId, jasmine.objectContaining({data: undefined}), - undefined, + true, ); }); @@ -303,7 +299,7 @@ describe('MessageService', () => { clientId, conversationId, jasmine.objectContaining({data: jasmine.any(String)}), - undefined, + true, ); });