mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-10-02 01:44:40 +08:00
bugfix for solution #950 incorrect mailto link
This commit is contained in:
parent
6237a3691b
commit
dbabbb9385
1 changed files with 2 additions and 2 deletions
|
@ -329,7 +329,7 @@ export class EmailModel extends AbstractModel {
|
|||
*/
|
||||
toLine(friendlyView, wrapWithLink) {
|
||||
let name = this.name,
|
||||
result = this.email || name,
|
||||
result = this.email,
|
||||
toLink = text =>
|
||||
'<a href="mailto:'
|
||||
+ encodeHtml(result) + (name ? '?to=' + encodeURIComponent('"' + name + '" <' + result + '>') : '')
|
||||
|
@ -348,7 +348,7 @@ export class EmailModel extends AbstractModel {
|
|||
result = toLink();
|
||||
}
|
||||
}
|
||||
return result;
|
||||
return result || name;
|
||||
}
|
||||
|
||||
static splitEmailLine(line) {
|
||||
|
|
Loading…
Add table
Reference in a new issue