mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
This commit is contained in:
parent
9caf77dd0c
commit
46066fee0d
2
gun.js
2
gun.js
@ -2123,6 +2123,7 @@
|
||||
} else {
|
||||
tmp = peer.id = peer.id || Type.text.random(9);
|
||||
mesh.say({dam: '?'}, opt.peers[tmp] = peer);
|
||||
delete dup.s[peer.last]; // IMPORTANT: see https://gun.eco/docs/DAM#self
|
||||
}
|
||||
peer.met = peer.met || +(new Date);
|
||||
if(!tmp.hied){ root.on(tmp.hied = 'hi', peer) }
|
||||
@ -2142,6 +2143,7 @@
|
||||
mesh.hear['?'] = function(msg, peer){
|
||||
if(!msg.pid){
|
||||
mesh.say({dam: '?', pid: opt.pid, '@': msg['#']}, peer);
|
||||
delete dup.s[peer.last]; // IMPORTANT: see https://gun.eco/docs/DAM#self
|
||||
// @rogowski I want to re-enable this AXE logic with some fix/merge later.
|
||||
/* var tmp = peer.queue; peer.queue = [];
|
||||
Type.obj.map(tmp, function(msg){
|
||||
|
Loading…
x
Reference in New Issue
Block a user