Skip to content

Commit 2fd4419

Browse files
chrisbobbegnprice
authored andcommitted
webview [nfc]: Declare _ local at the top of handleLongPress
1 parent 8140876 commit 2fd4419

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/webview/handleOutboundEvents.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,11 @@ const handleLongPress = (args: {|
206206
navigation: AppNavigationMethods,
207207
|}) => {
208208
const { props, target, messageId, href, navigation } = args;
209+
const { _ } = props;
209210

210211
if (href !== null) {
211212
const url = new URL(href, props.backgroundData.auth.realm).toString();
212213
Clipboard.setString(url);
213-
const { _ } = props;
214214
showToast(_('Link copied'));
215215
return;
216216
}
@@ -227,7 +227,6 @@ const handleLongPress = (args: {|
227227
startEditMessage,
228228
setDoNotMarkMessagesAsRead,
229229
composeBoxRef,
230-
_,
231230
} = props;
232231
if (target === 'header') {
233232
if (message.type === 'stream') {

0 commit comments

Comments
 (0)