Fix crash when changing your username

This commit is contained in:
Evan Hahn 2022-01-13 15:25:20 -06:00 committed by GitHub
parent 48836d5761
commit 393b740fe6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 6 deletions

View file

@ -1753,7 +1753,10 @@ export class ConversationModel extends window.Backbone
id: this.id,
uuid: this.get('uuid'),
e164: this.get('e164'),
username: this.get('username'),
// We had previously stored `null` instead of `undefined` in some cases. We should
// be able to remove this `dropNull` once usernames have gone to production.
username: dropNull(this.get('username')),
about: this.getAboutText(),
aboutText: this.get('about'),