new(whatsapp.gblib): Native provider works in groups now.
This commit is contained in:
parent
76308153b3
commit
9e84298ab0
1 changed files with 3 additions and 2 deletions
|
@ -946,6 +946,7 @@ export class WhatsappDirectLine extends GBService {
|
||||||
let botId;
|
let botId;
|
||||||
let text;
|
let text;
|
||||||
|
|
||||||
|
|
||||||
switch (provider) {
|
switch (provider) {
|
||||||
case "GeneralBots":
|
case "GeneralBots":
|
||||||
|
|
||||||
|
@ -1006,8 +1007,8 @@ export class WhatsappDirectLine extends GBService {
|
||||||
}
|
}
|
||||||
|
|
||||||
const sec = new SecService();
|
const sec = new SecService();
|
||||||
let user = await sec.getUserFromSystemId(id);
|
|
||||||
|
|
||||||
|
let user = await sec.ensureUser(this.min.instance.instanceId, id,senderName,'', 'whatsApp', senderName, null);
|
||||||
GBLog.info(`A WhatsApp mobile requested instance for: ${botId}.`);
|
GBLog.info(`A WhatsApp mobile requested instance for: ${botId}.`);
|
||||||
|
|
||||||
let urlMin: any = GBServer.globals.minInstances.filter
|
let urlMin: any = GBServer.globals.minInstances.filter
|
||||||
|
|
Loading…
Add table
Reference in a new issue