advancements in tests and storing messages
This commit is contained in:
13
back/mails/utils/statusUtils.js
Normal file
13
back/mails/utils/statusUtils.js
Normal 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,
|
||||
};
|
||||
Reference in New Issue
Block a user