diff --git a/packages/common/src/transformUserInfoMessages.test.ts b/packages/common/src/transformUserInfoMessages.test.ts index 15561a293f..f74692d194 100644 --- a/packages/common/src/transformUserInfoMessages.test.ts +++ b/packages/common/src/transformUserInfoMessages.test.ts @@ -19,7 +19,7 @@ describe('transformUserInfoMessages', () => { pubKey: 'pubKey', } - const transformedMessage = transformUserInfoMessages(ownerNickname, communityName, userNickname, message) + const transformedMessage = transformUserInfoMessages(userNickname, message) const expectedTransformedMessage = { id: 'id', type: 3, @@ -46,7 +46,7 @@ describe('transformUserInfoMessages', () => { signature: 'sig', } - const transformedMessage = transformUserInfoMessages(ownerNickname, communityName, userNickname, message, true) + const transformedMessage = transformUserInfoMessages(userNickname, message, true) const expectedTransformedMessage = { id: 'id', @@ -73,7 +73,7 @@ describe('transformUserInfoMessages', () => { pubKey: 'pubKey', } - const transformedMessage = transformUserInfoMessages(ownerNickname, communityName, userNickname, message) + const transformedMessage = transformUserInfoMessages(userNickname, message) const expectedTransformedMessage = { id: 'id', @@ -102,7 +102,7 @@ describe('transformUserInfoMessages', () => { pubKey: 'pubKey', } - const transformedMessage = transformUserInfoMessages(ownerNickname, communityName, userNickname, message) + const transformedMessage = transformUserInfoMessages(userNickname, message) const expectedTransformedMessage = { id: 'id', type: 3, diff --git a/packages/common/src/transformUserInfoMessages.ts b/packages/common/src/transformUserInfoMessages.ts index f55d377ad2..a268a7f731 100644 --- a/packages/common/src/transformUserInfoMessages.ts +++ b/packages/common/src/transformUserInfoMessages.ts @@ -3,8 +3,6 @@ import { ChannelMessage, DisplayableMessage, InfoMessagesType, MessageType } fro type MessageVariants = DisplayableMessage | ChannelMessage export function transformUserInfoMessages( - ownerNickname: string, - communityName: string, userNickname: string, message: T, isForNotification = false diff --git a/packages/desktop/src/renderer/components/widgets/channels/BasicMessage.tsx b/packages/desktop/src/renderer/components/widgets/channels/BasicMessage.tsx index ecac839151..8c6742f529 100644 --- a/packages/desktop/src/renderer/components/widgets/channels/BasicMessage.tsx +++ b/packages/desktop/src/renderer/components/widgets/channels/BasicMessage.tsx @@ -258,7 +258,7 @@ export const BasicMessageComponent: React.FC>( transformUserInfoMessages, - ownerNickname || 'owner', - currentCommunity?.name || '', sender, message, true