Refactor Signal app routing
This commit is contained in:
parent
86e6c2499c
commit
3ef0d221d1
28 changed files with 1347 additions and 1044 deletions
|
@ -18,9 +18,9 @@ import { DEFAULT_CONVERSATION_COLOR } from '../../types/Colors';
|
|||
import { getPreferredReactionEmoji as getPreferredReactionEmojiFromStoredValue } from '../../reactions/preferredReactionEmoji';
|
||||
import { isBeta } from '../../util/version';
|
||||
import { DurationInSeconds } from '../../util/durations';
|
||||
import { generateUsernameLink } from '../../util/sgnlHref';
|
||||
import * as Bytes from '../../Bytes';
|
||||
import { getUserNumber, getUserACI } from './user';
|
||||
import { contactByEncryptedUsernameRoute } from '../../util/signalRoutes';
|
||||
|
||||
const DEFAULT_PREFERRED_LEFT_PANE_WIDTH = 320;
|
||||
|
||||
|
@ -112,7 +112,9 @@ export const getUsernameLink = createSelector(
|
|||
|
||||
const content = Bytes.concatenate([entropy, serverId]);
|
||||
|
||||
return generateUsernameLink(Bytes.toBase64(content));
|
||||
return contactByEncryptedUsernameRoute
|
||||
.toWebUrl({ encryptedUsername: Bytes.toBase64(content) })
|
||||
.toString();
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue