Skip to content

Commit

Permalink
Merge pull request #1557 from shadow-dot-cat/castaway/1463_username_i…
Browse files Browse the repository at this point in the history
…dentity

fix(compose): Display From name in from list (not description)
  • Loading branch information
castaway committed Apr 17, 2024
2 parents 846a4f4 + a0f05f3 commit 469c1cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/profiles/profile.service.spec.ts
Expand Up @@ -32,7 +32,7 @@ describe('Identity', () => {
it('Should create an identity with name and email', () => {
const ident = Identity.fromObject({
'email': 'test@example.com',
'name': 'Fred Bloggs',
'from_name': 'Fred Bloggs',
});
expect(ident.nameAndAddress).toEqual('Fred Bloggs <test@example.com>');
});
Expand Down
2 changes: 1 addition & 1 deletion src/app/profiles/profile.service.ts
Expand Up @@ -57,7 +57,7 @@ export class Identity {
}

resolveNameAndAddress() {
this.nameAndAddress = this.name ? `${this.name} <${this.email}>` : this.email;
this.nameAndAddress = this.from_name ? `${this.from_name} <${this.email}>` : this.email;
}
}

Expand Down

0 comments on commit 469c1cf

Please sign in to comment.