diff --git a/src/services/conversationsService.js b/src/services/conversationsService.js index 630497e0cdc..1a595acef8d 100644 --- a/src/services/conversationsService.js +++ b/src/services/conversationsService.js @@ -227,7 +227,7 @@ const setNotificationCalls = async function(token, level) { * @param {string} token The token of the conversation to be removed from favorites * @param {string} password The password to set for the conversation (optional, only if force password is enabled) */ -const makeConversationPublic = async function(token, password = '') { +const makeConversationPublic = async function(token, password) { const data = (hasTalkFeature(token, 'conversation-creation-password') && password) ? { password } : undefined diff --git a/src/store/conversationsStore.spec.js b/src/store/conversationsStore.spec.js index 021308ba6da..13fbec758b5 100644 --- a/src/store/conversationsStore.spec.js +++ b/src/store/conversationsStore.spec.js @@ -648,7 +648,7 @@ describe('conversationsStore', () => { allowGuests: true, }) - expect(makeConversationPublic).toHaveBeenCalledWith(testToken) + expect(makeConversationPublic).toHaveBeenCalledWith(testToken, undefined) const changedConversation = store.getters.conversation(testToken) expect(changedConversation.type).toEqual(CONVERSATION.TYPE.PUBLIC)