diff --git a/pkg/interface/src/views/apps/chat/components/ChatPane.tsx b/pkg/interface/src/views/apps/chat/components/ChatPane.tsx index d9aa8373e..3173807e9 100644 --- a/pkg/interface/src/views/apps/chat/components/ChatPane.tsx +++ b/pkg/interface/src/views/apps/chat/components/ChatPane.tsx @@ -8,7 +8,6 @@ import { useFileUpload } from '~/logic/lib/useFileUpload'; import { createStorageKey, storageVersion, clearStorageMigration } from '~/logic/lib/util'; import { useOurContact } from '~/logic/state/contact'; import { useGraphTimesent } from '~/logic/state/graph'; -import ShareProfile from '~/views/apps/chat/components/ShareProfile'; import { Loading } from '~/views/components/Loading'; import SubmitDragger from '~/views/components/SubmitDragger'; import ChatInput from './ChatInput'; @@ -145,11 +144,6 @@ export function ChatPane(props: ChatPaneProps): ReactElement { return ( // @ts-ignore bind typings - setShowBanner(false)} - /> {canUpload && drag.dragging && } void; -} - -const ShareProfile = (props: ShareProfileProps): ReactElement | null => { - const { recipients } = props; - - const image = (props?.our?.avatar) - ? ( - - ) : ( - - - - ); - - const onClick = async () => { - if(typeof recipients === 'string') { - const [,,ship,name] = recipients.split('/'); - await airlock.poke(allowGroup(ship, name)); - if(ship !== `~${window.ship}`) { - await airlock.poke(share(ship)); - } - } else if(recipients.length > 0) { - await airlock.poke(allowShips(recipients)); - await Promise.all(recipients.map(r => airlock.poke(share(r)))); - } - props.onShare(); - }; - - return props.recipients?.length > 0 ? ( - - - {image} - Share private profile? - - - - ) : null; -}; - -export default ShareProfile;