mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-24 17:38:40 -06:00
fix: Proxy configuration improvements
This commit is contained in:
parent
3603571967
commit
3238150b92
@ -1421,7 +1421,10 @@ export class WAStartupService {
|
|||||||
userDevicesCache: this.userDevicesCache,
|
userDevicesCache: this.userDevicesCache,
|
||||||
transactionOpts: { maxCommitRetries: 10, delayBetweenTriesMs: 10 },
|
transactionOpts: { maxCommitRetries: 10, delayBetweenTriesMs: 10 },
|
||||||
patchMessageBeforeSending(message) {
|
patchMessageBeforeSending(message) {
|
||||||
if (message.deviceSentMessage?.message?.listMessage?.listType === proto.Message.ListMessage.ListType.PRODUCT_LIST) {
|
if (
|
||||||
|
message.deviceSentMessage?.message?.listMessage?.listType ===
|
||||||
|
proto.Message.ListMessage.ListType.PRODUCT_LIST
|
||||||
|
) {
|
||||||
message = JSON.parse(JSON.stringify(message));
|
message = JSON.parse(JSON.stringify(message));
|
||||||
|
|
||||||
message.deviceSentMessage.message.listMessage.listType = proto.Message.ListMessage.ListType.SINGLE_SELECT;
|
message.deviceSentMessage.message.listMessage.listType = proto.Message.ListMessage.ListType.SINGLE_SELECT;
|
||||||
@ -1505,7 +1508,10 @@ export class WAStartupService {
|
|||||||
userDevicesCache: this.userDevicesCache,
|
userDevicesCache: this.userDevicesCache,
|
||||||
transactionOpts: { maxCommitRetries: 10, delayBetweenTriesMs: 10 },
|
transactionOpts: { maxCommitRetries: 10, delayBetweenTriesMs: 10 },
|
||||||
patchMessageBeforeSending(message) {
|
patchMessageBeforeSending(message) {
|
||||||
if (message.deviceSentMessage?.message?.listMessage?.listType === proto.Message.ListMessage.ListType.PRODUCT_LIST) {
|
if (
|
||||||
|
message.deviceSentMessage?.message?.listMessage?.listType ===
|
||||||
|
proto.Message.ListMessage.ListType.PRODUCT_LIST
|
||||||
|
) {
|
||||||
message = JSON.parse(JSON.stringify(message));
|
message = JSON.parse(JSON.stringify(message));
|
||||||
|
|
||||||
message.deviceSentMessage.message.listMessage.listType = proto.Message.ListMessage.ListType.SINGLE_SELECT;
|
message.deviceSentMessage.message.listMessage.listType = proto.Message.ListMessage.ListType.SINGLE_SELECT;
|
||||||
|
Loading…
Reference in New Issue
Block a user