mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-03-02 00:30:25 +00:00
fix: cq code auto escape
fix: get groups no cache
This commit is contained in:
@@ -16,8 +16,8 @@ class GetGroupList extends BaseAction<Payload, OB11Group[]> {
|
||||
|
||||
protected async _handle(payload: Payload) {
|
||||
let groupList: Group[] = Array.from(groups.values());
|
||||
if (groupList.length === 0) {
|
||||
groupList = await NTQQGroupApi.getGroups(payload.no_cache === true);
|
||||
if (groupList.length === 0 || payload.no_cache === true) {
|
||||
groupList = await NTQQGroupApi.getGroups(true);
|
||||
// log('get groups', groups);
|
||||
}
|
||||
return OB11Constructor.groups(groupList);
|
||||
|
||||
Reference in New Issue
Block a user