advancements in tests and storing messages
This commit is contained in:
1 parent
4d4ef54bcb
commit
0ea7f5865b
15 files changed
+285
-84
No files matched your search
@@ -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,
|
||||
};
|
||||
Reference in new issue
Block a user