fix: add punycode support for emoji ons

pull/3281/head
Ryan Miller 2 months ago
parent 7862301a5b
commit 31d8ac6094
No known key found for this signature in database
GPG Key ID: D21C44D95F6A5495

@ -103,6 +103,7 @@
"os-locale": "5.0.0",
"p-retry": "^4.2.0",
"protobufjs": "^7.2.4",
"punycode": "^2.3.1",
"rc-slider": "^10.6.2",
"react": "18.3.1",
"react-contexify": "^6.0.0",

@ -5,6 +5,7 @@ import styled from 'styled-components';
import { motion } from 'framer-motion';
import { isEmpty } from 'lodash';
import { useDispatch } from 'react-redux';
import { toASCII } from 'punycode';
import { ConvoHub } from '../../../session/conversations';
@ -104,7 +105,7 @@ export const OverlayMessage = () => {
return;
}
const pubkeyOrOnsTrimmed = pubkeyOrOns.trim();
const pubkeyOrOnsTrimmed = toASCII(pubkeyOrOns.trim());
const validationError = PubKey.validateWithErrorNoBlinding(pubkeyOrOnsTrimmed);
if (!validationError) {

@ -6150,7 +6150,7 @@ punycode.js@^2.3.1:
resolved "https://registry.yarnpkg.com/punycode.js/-/punycode.js-2.3.1.tgz#6b53e56ad75588234e79f4affa90972c7dd8cdb7"
integrity sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==
punycode@^2.1.0, punycode@^2.1.1, punycode@^2.3.0:
punycode@^2.1.0, punycode@^2.1.1, punycode@^2.3.0, punycode@^2.3.1:
version "2.3.1"
resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5"
integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==

Loading…
Cancel
Save