mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-25 19:08:04 +01:00
Handle 409/410 when confirming username
This commit is contained in:
@@ -12,6 +12,11 @@ export enum ReserveUsernameError {
|
||||
Conflict = 'Conflict',
|
||||
}
|
||||
|
||||
export enum ConfirmUsernameResult {
|
||||
Ok = 'Ok',
|
||||
ConflictOrGone = 'ConflictOrGone',
|
||||
}
|
||||
|
||||
export function getUsernameFromSearch(searchTerm: string): string | undefined {
|
||||
// Search term contains username if it:
|
||||
// - Is a valid username with or without a discriminator
|
||||
|
||||
Reference in New Issue
Block a user