mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-24 02:18:15 +01:00
Improve username validity checks
Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
@@ -1378,7 +1378,7 @@ export async function mergeContactRecord(
|
||||
};
|
||||
}
|
||||
|
||||
await conversation.updateUsername(dropNull(contactRecord.username), {
|
||||
await conversation.updateUsername(dropNull(contactRecord.username || null), {
|
||||
shouldSave: false,
|
||||
fromStorageService: true,
|
||||
});
|
||||
@@ -1986,7 +1986,7 @@ export async function mergeAccountRecord(
|
||||
needsStorageServiceSync: false,
|
||||
});
|
||||
|
||||
await conversation.updateUsername(dropNull(username), {
|
||||
await conversation.updateUsername(dropNull(username || null), {
|
||||
shouldSave: false,
|
||||
fromStorageService: true,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user