release: v1.4.3

This commit is contained in:
手瓜一十雪 2024-05-30 16:21:39 +08:00
parent fb99e878b0
commit 998c67a649
7 changed files with 18 additions and 6 deletions

View File

@ -0,0 +1,11 @@
# v1.4.3
QQ Version: Windows 9.9.10-24108 / Linux 3.2.7-23361
## 修复与优化
* 修复名片通知
## 新增与调整
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)

View File

@ -2,7 +2,7 @@
"name": "napcat",
"private": true,
"type": "module",
"version": "1.4.2",
"version": "1.4.3",
"scripts": {
"watch:dev": "vite --mode development",
"watch:prod": "vite --mode production",

@ -1 +1 @@
Subproject commit a5de3f80e72328d09203d31cecac5bf438c60209
Subproject commit b1a9207a5933476276b7247bae025966b89dc52a

View File

@ -250,7 +250,8 @@ export class NapCatOnebot11 {
const role = (await getGroupMember(groupCode, selfInfo.uin))?.role;
const isPrivilege = role === 3 || role === 4;
for (const member of members.values()) {
if (member?.isDelete && !isPrivilege) {
//console.log(member?.isDelete, role, isPrivilege);
if (member?.isDelete && !isPrivilege /*&& selfInfo.uin !== member.uin*/) {
console.log('[群聊] 群组 ', groupCode, ' 成员' + member.uin + '退出');
const groupDecreaseEvent = new OB11GroupDecreaseEvent(parseInt(groupCode), parseInt(member.uin), 0, 'leave');// 不知道怎么出去的
postOB11Event(groupDecreaseEvent, true);

View File

@ -1 +1 @@
export const version = '1.4.2';
export const version = '1.4.3';

View File

@ -29,7 +29,7 @@ async function onSettingWindowCreated(view: Element) {
SettingItem(
'<span id="napcat-update-title">Napcat</span>',
undefined,
SettingButton('V1.4.2', 'napcat-update-button', 'secondary')
SettingButton('V1.4.3', 'napcat-update-button', 'secondary')
),
]),
SettingList([

View File

@ -167,7 +167,7 @@ async function onSettingWindowCreated(view) {
SettingItem(
'<span id="napcat-update-title">Napcat</span>',
void 0,
SettingButton("V1.4.2", "napcat-update-button", "secondary")
SettingButton("V1.4.3", "napcat-update-button", "secondary")
)
]),
SettingList([