Redesign device link screens

This commit is contained in:
Evan Hahn 2021-12-16 09:02:22 -06:00 committed by GitHub
parent a023fc1bb0
commit 364f00f37a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 1358 additions and 803 deletions

View file

@ -0,0 +1,7 @@
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
export function normalizeDeviceName(rawDeviceName: string): string {
// We want to do additional normalization here. See DESKTOP-2845.
return rawDeviceName.trim().replace(/\0/g, '');
}