Skip to content

Commit

Permalink
webview [nfc]: Declare _ local at the top of handleLongPress
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbobbe authored and gnprice committed Apr 25, 2024
1 parent 8140876 commit 2fd4419
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/webview/handleOutboundEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,11 @@ const handleLongPress = (args: {|
navigation: AppNavigationMethods,
|}) => {
const { props, target, messageId, href, navigation } = args;
const { _ } = props;

if (href !== null) {
const url = new URL(href, props.backgroundData.auth.realm).toString();
Clipboard.setString(url);
const { _ } = props;
showToast(_('Link copied'));
return;
}
Expand All @@ -227,7 +227,6 @@ const handleLongPress = (args: {|
startEditMessage,
setDoNotMarkMessagesAsRead,
composeBoxRef,
_,
} = props;
if (target === 'header') {
if (message.type === 'stream') {
Expand Down

0 comments on commit 2fd4419

Please sign in to comment.