mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-19 11:52:20 -06:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user