advancements in tests and storing messages

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

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,
};