Compare commits

..

10 Commits
1.4.4 ... 1.4.5

Author SHA1 Message Date
Davidson Gomes
fb6e58b3c4 Merge branch 'release/1.4.5' 2023-07-26 09:39:37 -03:00
Davidson Gomes
67e98456bb fix: Fix mids going duplicated in chatwoot 2023-07-26 09:39:27 -03:00
Davidson Gomes
3e47420534 Merge tag '1.4.5' into develop
* Fixed problems in localization template in chatwoot
* Fix mids going duplicated in chatwoot
2023-07-26 09:38:44 -03:00
Davidson Gomes
1d3d557c43 Merge branch 'release/1.4.5' 2023-07-26 09:38:36 -03:00
Davidson Gomes
3f41974a75 fix: Fix mids going duplicated in chatwoot 2023-07-26 09:38:22 -03:00
Davidson Gomes
3e3c7397a5 Merge branch 'develop' of github.com:EvolutionAPI/evolution-api into develop 2023-07-26 09:36:10 -03:00
Davidson Gomes
dcb51702e7 Merge pull request #30 from codephix/patch-1
Update whatsapp.service.ts
2023-07-26 09:36:01 -03:00
Davidson Gomes
de0c9a1eff fix: fixed problems in localization template 2023-07-26 09:34:10 -03:00
CodePhix
dd0c1e20a7 Update whatsapp.service.ts 2023-07-25 19:59:42 -03:00
Davidson Gomes
4769d75dc3 Merge tag '1.4.4' into develop
* Fixed chatwoot line wrap issue
* Solved receive location in chatwoot
* When requesting the pairing code, it also brings the qr code
* Option reopen_conversation in chatwoot endpoint
* Option conversation_pending in chatwoot endpoint
2023-07-25 16:20:04 -03:00
4 changed files with 15 additions and 11 deletions

View File

@@ -1,3 +1,10 @@
# 1.4.5 (2023-07-26 09:32)
### Fixed
* Fixed problems in localization template in chatwoot
* Fix mids going duplicated in chatwoot
# 1.4.4 (2023-07-25 15:24) # 1.4.4 (2023-07-25 15:24)
### Fixed ### Fixed

View File

@@ -1,6 +1,6 @@
{ {
"name": "evolution-api", "name": "evolution-api",
"version": "1.4.4", "version": "1.4.5",
"description": "Rest api for communication with WhatsApp", "description": "Rest api for communication with WhatsApp",
"main": "./dist/src/main.js", "main": "./dist/src/main.js",
"scripts": { "scripts": {

View File

@@ -240,7 +240,6 @@ export class ChatwootService {
data['status'] = 'pending'; data['status'] = 'pending';
} }
console.log('this.provider', this.provider);
const conversation = await client.conversations.create({ const conversation = await client.conversations.create({
accountId: this.provider.account_id, accountId: this.provider.account_id,
data, data,
@@ -1209,11 +1208,8 @@ export class ChatwootService {
audioMessage: msg.audioMessage?.caption, audioMessage: msg.audioMessage?.caption,
contactMessage: msg.contactMessage?.vcard, contactMessage: msg.contactMessage?.vcard,
contactsArrayMessage: msg.contactsArrayMessage, contactsArrayMessage: msg.contactsArrayMessage,
locationMessage: msg.locationMessage locationMessage: msg.locationMessage,
? msg.locationMessage?.degreesLatitude + liveLocationMessage: msg.liveLocationMessage,
',' +
msg.locationMessage?.degreesLongitude
: undefined,
}; };
this.logger.verbose('type message: ' + types); this.logger.verbose('type message: ' + types);
@@ -1227,8 +1223,9 @@ export class ChatwootService {
const result = typeKey ? types[typeKey] : undefined; const result = typeKey ? types[typeKey] : undefined;
if (typeKey === 'locationMessage') { if (typeKey === 'locationMessage' || typeKey === 'liveLocationMessage') {
const [latitude, longitude] = result.split(','); const latitude = result.degreesLatitude;
const longitude = result.degreesLongitude;
const formattedLocation = `**Location:** const formattedLocation = `**Location:**
**latitude:** ${latitude} **latitude:** ${latitude}

View File

@@ -1147,7 +1147,7 @@ export class WAStartupService {
if ( if (
type !== 'notify' || type !== 'notify' ||
// received.message?.protocolMessage || received.message?.protocolMessage ||
received.message?.pollUpdateMessage received.message?.pollUpdateMessage
) { ) {
this.logger.verbose('message rejected'); this.logger.verbose('message rejected');
@@ -1277,7 +1277,7 @@ export class WAStartupService {
5: 'PLAYED', 5: 'PLAYED',
}; };
for await (const { key, update } of args) { for await (const { key, update } of args) {
if (settings.groups_ignore && key.remoteJid.includes('@g.us')) { if (settings?.groups_ignore && key.remoteJid.includes('@g.us')) {
this.logger.verbose('group ignored'); this.logger.verbose('group ignored');
return; return;
} }