fix #186
This commit is contained in:
1 parent
b60167bcaa
commit
b2e360aaa7
2 files changed
+2
-1
No files matched your search
@@ -62,6 +62,7 @@ export enum BuddyReqType {
|
|||||||
KMEINITIATORWAITPEERCONFIRM
|
KMEINITIATORWAITPEERCONFIRM
|
||||||
}
|
}
|
||||||
export interface FriendRequest {
|
export interface FriendRequest {
|
||||||
|
isInitiator?: boolean;
|
||||||
isDecide: boolean;
|
isDecide: boolean;
|
||||||
friendUid: string;
|
friendUid: string;
|
||||||
reqType: BuddyReqType,
|
reqType: BuddyReqType,
|
||||||
|
|||||||
@@ -594,7 +594,7 @@ export class NapCatOnebot11 {
|
|||||||
|
|
||||||
async postFriendRequest(reqs: FriendRequest[]) {
|
async postFriendRequest(reqs: FriendRequest[]) {
|
||||||
for (const req of reqs) {
|
for (const req of reqs) {
|
||||||
if (req.isDecide && req.reqType !== BuddyReqType.KMEINITIATORWAITPEERCONFIRM) {
|
if (!!req.isInitiator && req.isDecide && req.reqType !== BuddyReqType.KMEINITIATORWAITPEERCONFIRM) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const friendRequestEvent = new OB11FriendRequestEvent();
|
const friendRequestEvent = new OB11FriendRequestEvent();
|
||||||
|
|||||||
Reference in new issue
Block a user