wechaty-web-panel 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/src/service/msg-filters.d.ts +4 -1
- package/dist/cjs/src/service/msg-filters.js +3 -1
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/src/service/msg-filters.d.ts +4 -1
- package/dist/esm/src/service/msg-filters.js +3 -1
- package/package.json +1 -1
|
@@ -44,7 +44,10 @@ export function avatarCrop({ msg, name, config, avatar }: {
|
|
|
44
44
|
config: any;
|
|
45
45
|
avatar: any;
|
|
46
46
|
}): Promise<any[] | any>;
|
|
47
|
-
export function emptyMsg(
|
|
47
|
+
export function emptyMsg({ room, isMention }: {
|
|
48
|
+
room: any;
|
|
49
|
+
isMention: any;
|
|
50
|
+
}): {
|
|
48
51
|
type: number;
|
|
49
52
|
content: string;
|
|
50
53
|
url: string;
|
|
@@ -10,7 +10,9 @@ const index_js_1 = require("../lib/index.js");
|
|
|
10
10
|
const lanuch_js_1 = require("../puppeteer-paint/lanuch.js");
|
|
11
11
|
const index_js_2 = require("../common/index.js");
|
|
12
12
|
const superagent_js_1 = require("../proxy/superagent.js");
|
|
13
|
-
function emptyMsg() {
|
|
13
|
+
function emptyMsg({ room, isMention }) {
|
|
14
|
+
if (room && !isMention)
|
|
15
|
+
return [];
|
|
14
16
|
let msgArr = []; // 返回的消息列表
|
|
15
17
|
let obj = { type: 1, content: '我在呢', url: '' }; // 消息主体
|
|
16
18
|
msgArr.push(obj);
|
|
@@ -44,7 +44,10 @@ export function avatarCrop({ msg, name, config, avatar }: {
|
|
|
44
44
|
config: any;
|
|
45
45
|
avatar: any;
|
|
46
46
|
}): Promise<any[] | any>;
|
|
47
|
-
export function emptyMsg(
|
|
47
|
+
export function emptyMsg({ room, isMention }: {
|
|
48
|
+
room: any;
|
|
49
|
+
isMention: any;
|
|
50
|
+
}): {
|
|
48
51
|
type: number;
|
|
49
52
|
content: string;
|
|
50
53
|
url: string;
|
|
@@ -4,7 +4,9 @@ import { contentDistinguish, setLocalSchedule, isRealDate } from '../lib/index.j
|
|
|
4
4
|
import { generateAvatar } from '../puppeteer-paint/lanuch.js';
|
|
5
5
|
import { addRoom } from '../common/index.js';
|
|
6
6
|
import { service, callbackAibotApi } from '../proxy/superagent.js';
|
|
7
|
-
function emptyMsg() {
|
|
7
|
+
function emptyMsg({ room, isMention }) {
|
|
8
|
+
if (room && !isMention)
|
|
9
|
+
return [];
|
|
8
10
|
let msgArr = []; // 返回的消息列表
|
|
9
11
|
let obj = { type: 1, content: '我在呢', url: '' }; // 消息主体
|
|
10
12
|
msgArr.push(obj);
|