fix(new-links): Fix processing links to profile without encoded data

Fixes: #12848
This commit is contained in:
Boris Melnik 2023-11-28 22:55:07 +03:00
parent bfb5813c5f
commit 34097f9dea
1 changed files with 6 additions and 1 deletions

View File

@ -698,7 +698,12 @@ QtObject {
}
function parseContactUrl(link) {
const index = link.lastIndexOf("/u/")
let index = link.lastIndexOf("/u/")
if (index === -1) {
index = link.lastIndexOf("/u#")
}
if (index === -1)
return null