Search for username in compose mode

This commit is contained in:
Scott Nonnenberg 2021-11-11 17:17:29 -08:00 committed by GitHub
parent 6731cc6629
commit cbae7f8ee9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 997 additions and 72 deletions

View file

@ -4478,10 +4478,13 @@ export class ConversationModel extends window.Backbone
getTitle(): string {
if (isDirectConversation(this.attributes)) {
const username = this.get('username');
return (
this.get('name') ||
this.getProfileName() ||
this.getNumber() ||
(username && window.i18n('at-username', { username })) ||
window.i18n('unknownContact')
);
}