mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-16 20:22:54 -06:00
style(whatsapp): format code for consistency
- Adjusted spacing in destructuring assignments for `remoteJid` in multiple locations to enhance code readability and maintain consistency with coding standards. - Removed unnecessary blank lines to streamline the code structure. This commit focuses on improving the overall style of the `whatsapp.baileys.service.ts` file without altering any functionality.
This commit is contained in:
parent
fbfa364df9
commit
e16bb0e580
@ -1311,7 +1311,7 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
data: messageRaw,
|
data: messageRaw,
|
||||||
});
|
});
|
||||||
|
|
||||||
const {remoteJid} = received.key;
|
const { remoteJid } = received.key;
|
||||||
const timestamp = msg.messageTimestamp;
|
const timestamp = msg.messageTimestamp;
|
||||||
const fromMe = received.key.fromMe.toString();
|
const fromMe = received.key.fromMe.toString();
|
||||||
const messageKey = `${remoteJid}_${timestamp}_${fromMe}`;
|
const messageKey = `${remoteJid}_${timestamp}_${fromMe}`;
|
||||||
@ -1584,7 +1584,7 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
if (!key.fromMe && key.remoteJid) {
|
if (!key.fromMe && key.remoteJid) {
|
||||||
readChatToUpdate[key.remoteJid] = true;
|
readChatToUpdate[key.remoteJid] = true;
|
||||||
|
|
||||||
const {remoteJid} = key;
|
const { remoteJid } = key;
|
||||||
const timestamp = findMessage.messageTimestamp;
|
const timestamp = findMessage.messageTimestamp;
|
||||||
const fromMe = key.fromMe.toString();
|
const fromMe = key.fromMe.toString();
|
||||||
const messageKey = `${remoteJid}_${timestamp}_${fromMe}`;
|
const messageKey = `${remoteJid}_${timestamp}_${fromMe}`;
|
||||||
|
Loading…
Reference in New Issue
Block a user