From 013594444d047d2d9158a3cfc172c7b0b37e79a8 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 15 Oct 2021 09:45:03 -0500 Subject: [PATCH] AccountHeader: make profile share button work --- app/soapbox/features/account/components/header.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/soapbox/features/account/components/header.js b/app/soapbox/features/account/components/header.js index 6a603fe20..93b75108d 100644 --- a/app/soapbox/features/account/components/header.js +++ b/app/soapbox/features/account/components/header.js @@ -158,6 +158,15 @@ class Header extends ImmutablePureComponent { } } + handleShare = () => { + navigator.share({ + text: `@${this.props.account.get('acct')}`, + url: this.props.account.get('url'), + }).catch((e) => { + if (e.name !== 'AbortError') console.error(e); + }); + } + makeMenu() { const { account, intl, me, meAccount, features } = this.props;