Bug fix: liveRequest not working correctly
Fixed: Live request not working when senderID is passed as an array
This commit is contained in:
parent
1e77954eba
commit
29a4e34815
@ -174,9 +174,10 @@ function checkIfRequestSatisfy(request, data) {
|
||||
if (request.type && request.type !== data.type)
|
||||
return false;
|
||||
if (request.senderID) {
|
||||
if (Array.isArray(request.senderID) && !request.senderID.includes(data.senderID))
|
||||
return false;
|
||||
else if (request.senderID !== data.senderID)
|
||||
if (Array.isArray(request.senderID)) {
|
||||
if (!request.senderID.includes(data.senderID))
|
||||
return false;
|
||||
} else if (request.senderID !== data.senderID)
|
||||
return false;
|
||||
};
|
||||
return true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user