Handle username link 404 by showing toast

This commit is contained in:
Fedor Indutny
2023-08-28 19:01:41 +02:00
committed by GitHub
parent 2532e8902a
commit b13cc693c7
2 changed files with 19 additions and 9 deletions

View File

@@ -566,9 +566,12 @@ export function createIPCEvents(
}
const maybeUsernameBase64 = parseUsernameBase64FromSignalDotMeHash(hash);
let username: string | undefined;
if (maybeUsernameBase64) {
const username = await resolveUsernameByLinkBase64(maybeUsernameBase64);
username = await resolveUsernameByLinkBase64(maybeUsernameBase64);
}
if (username) {
const convoId = await lookupConversationWithoutServiceId({
type: 'username',
username,