fix #186
Build Release / check-version (push) Canceled after 0s
Build Release / build-linux (arm64, linux) (push) Canceled after 0s
Build Release / build-linux (x64, linux) (push) Canceled after 0s
Build Release / build-win32 (ia32, win32) (push) Canceled after 0s
Build Release / build-win32 (x64, win32) (push) Canceled after 0s
Build Release / release-napcat (push) Canceled after 0s
Build Release / check-version (push) Canceled after 0s
Build Release / build-linux (arm64, linux) (push) Canceled after 0s
Build Release / build-linux (x64, linux) (push) Canceled after 0s
Build Release / build-win32 (ia32, win32) (push) Canceled after 0s
Build Release / build-win32 (x64, win32) (push) Canceled after 0s
Build Release / release-napcat (push) Canceled after 0s
This commit is contained in:
1 parent
74cf501c8f
commit
385dcbc75a
1 file changed
+1
-1
@@ -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.isInitiator && 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