Fix mailto: that i broke in #484

This commit is contained in:
the-djmaze 2022-09-30 11:38:51 +02:00
parent ec24392664
commit 54107ca937
4 changed files with 36 additions and 24 deletions

View file

@ -18,10 +18,8 @@ export class EmailCollectionModel extends AbstractCollectionModel
* @param {boolean=} wrapWithLink = false
* @returns {string}
*/
toString(friendlyView = false, wrapWithLink = false) {
const result = [];
this.forEach(email => result.push(email.toLine(friendlyView, wrapWithLink)));
return result.join(', ');
toString(friendlyView, wrapWithLink) {
return this.map(email => email.toLine(friendlyView, wrapWithLink)).join(', ');
}
/**