mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-24 17:38:40 -06:00
v2.0.4-rc
This commit is contained in:
parent
fcb9dd29f3
commit
881c1c2aa6
@ -49,7 +49,7 @@ if (!serverConfig.DISABLE_MANAGER) router.use('/manager', new ViewsRouter().rout
|
|||||||
|
|
||||||
router.get('/assets/*', (req, res) => {
|
router.get('/assets/*', (req, res) => {
|
||||||
const fileName = req.params[0];
|
const fileName = req.params[0];
|
||||||
const basePath = path.join(__dirname, '../../../manager/dist');
|
const basePath = path.join(process.cwd(), 'manager', 'dist');
|
||||||
|
|
||||||
const filePath = path.join(basePath, 'assets/', fileName);
|
const filePath = path.join(basePath, 'assets/', fileName);
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ export class ViewsRouter extends RouterBroker {
|
|||||||
super();
|
super();
|
||||||
this.router = Router();
|
this.router = Router();
|
||||||
|
|
||||||
const basePath = path.join(__dirname, '../../../manager/dist');
|
const basePath = path.join(process.cwd(), 'manager', 'dist');
|
||||||
const indexPath = path.join(basePath, 'index.html');
|
const indexPath = path.join(basePath, 'index.html');
|
||||||
|
|
||||||
console.log('Base path:', basePath);
|
console.log('Base path:', basePath);
|
||||||
|
@ -22,7 +22,6 @@ import makeWASocket, {
|
|||||||
GroupParticipant,
|
GroupParticipant,
|
||||||
isJidBroadcast,
|
isJidBroadcast,
|
||||||
isJidGroup,
|
isJidGroup,
|
||||||
isJidNewsletter,
|
|
||||||
isJidUser,
|
isJidUser,
|
||||||
makeCacheableSignalKeyStore,
|
makeCacheableSignalKeyStore,
|
||||||
MessageUpsertType,
|
MessageUpsertType,
|
||||||
@ -622,7 +621,7 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
shouldIgnoreJid: (jid) => {
|
shouldIgnoreJid: (jid) => {
|
||||||
const isGroupJid = this.localSettings.groupsIgnore && isJidGroup(jid);
|
const isGroupJid = this.localSettings.groupsIgnore && isJidGroup(jid);
|
||||||
const isBroadcast = !this.localSettings.readStatus && isJidBroadcast(jid);
|
const isBroadcast = !this.localSettings.readStatus && isJidBroadcast(jid);
|
||||||
const isNewsletter = isJidNewsletter(jid);
|
const isNewsletter = jid.includes('newsletter');
|
||||||
|
|
||||||
return isGroupJid || isBroadcast || isNewsletter;
|
return isGroupJid || isBroadcast || isNewsletter;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user