fix: Ghost emoji correction in message sending

Corrects an issue where a ghost emoji was being displayed in message sending. The 'Mentions' class was removed and its properties were moved to the 'Options' class. The 'everyOne' and 'mentioned' properties were replaced by 'mentionsEveryOne' and 'mentioned', respectively. This change improves the code readability and maintainability.

The affected files are:
- src/api/dto/sendMessage.dto.ts
- src/api/services/channels/whatsapp.baileys.service.ts
- src/api/services/channels/whatsapp.business.service.ts
This commit is contained in:
Davidson Gomes
2024-06-26 17:27:38 -03:00
parent 0ded76d366
commit 99f4fe2e43
3 changed files with 43 additions and 77 deletions

View File

@@ -5,18 +5,14 @@ export class Quoted {
message: proto.IMessage;
}
export class Mentions {
everyOne?: boolean;
mentioned?: string[];
}
export class Options {
delay?: number;
presence?: WAPresence;
quoted?: Quoted;
mentions?: Mentions;
linkPreview?: boolean;
encoding?: boolean;
mentionsEveryOne?: boolean;
mentioned?: string[];
}
export class MediaMessage {
@@ -44,7 +40,7 @@ export class Metadata {
delay?: number;
quoted?: Quoted;
linkPreview?: boolean;
everyOne?: boolean;
mentionsEveryOne?: boolean;
mentioned?: string[];
encoding?: boolean;
}