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

@@ -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([