Improve username validity checks

Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
automated-signal
2026-03-12 15:20:50 -05:00
committed by GitHub
parent da339458ce
commit aed991f2d4
3 changed files with 14 additions and 3 deletions

View File

@@ -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,
});