advancements in tests and storing messages

This commit is contained in:
grimhilt committed 2023-03-25 16:47:23 +01:00
1 parent 4d4ef54bcb
commit 0ea7f5865b
15 files changed
+285 -84

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
function isDmOnEnvelope(envelope) {
const members =
envelope.bcc?.length +
envelope.cc?.length +
envelope.to?.length +
envelope.sender?.length +
envelope.from?.length;
return members === 2;
}
module.exports = {
isDmOnEnvelope,
};