mirror of https://codeberg.org/pzp/pzp-set.git
isValidSetMsg should not check for accountID
This commit is contained in:
parent
3accb5e3b0
commit
07c3e295b2
|
@ -181,7 +181,6 @@ function initSet(peer, config) {
|
||||||
function isValidSetMsg(msg) {
|
function isValidSetMsg(msg) {
|
||||||
if (!msg) return false
|
if (!msg) return false
|
||||||
if (!msg.data) return false
|
if (!msg.data) return false
|
||||||
if (msg.metadata.account !== loadedAccountID) return false
|
|
||||||
if (!msg.metadata.domain.startsWith(PREFIX)) return false
|
if (!msg.metadata.domain.startsWith(PREFIX)) return false
|
||||||
if (!Array.isArray(msg.data.add)) return false
|
if (!Array.isArray(msg.data.add)) return false
|
||||||
if (!Array.isArray(msg.data.del)) return false
|
if (!Array.isArray(msg.data.del)) return false
|
||||||
|
|
Loading…
Reference in New Issue