Skip to content
Snippets Groups Projects
Commit 3ce0743e authored by Alexey Lunin's avatar Alexey Lunin
Browse files

small refactor of emailUtilities. splitParticipants method

parent ebdc3358
No related branches found
No related tags found
1 merge request!26[Email Thread] Display registered and not registered receivers
import dataUriToBlob from "data-uri-to-blob";
import libmime from 'libmime';
import map from 'lodash/map';
import union from 'lodash/union';
import {
......@@ -18,7 +17,7 @@ const SIGNATURE_CONTENT_TYPE = "application/pkcs7-signature";
export const DEFAULT_ATTACHMENT_NAME = 'attachment';
const splitParticipants = participantsList => {
const participants = map(participantsList, participants => participants.split(",").map(p => p.trim()));
const participants = participantsList.map(participants => participants.split(",").map(p => p.trim()));
return union.apply(null, participants);
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment