mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-20 15:06:15 -04:00
Merge remote-tracking branch 'fork/fix-list-self-in-peers' into add_device_pairing
This commit is contained in:
commit
39ee016875
1 changed files with 2 additions and 0 deletions
|
@ -86,6 +86,7 @@ class SnapdropServer {
|
||||||
|
|
||||||
// notify all other peers
|
// notify all other peers
|
||||||
for (const otherPeerId in this._rooms[peer.ip]) {
|
for (const otherPeerId in this._rooms[peer.ip]) {
|
||||||
|
if (otherPeerId === peer.id) continue;
|
||||||
const otherPeer = this._rooms[peer.ip][otherPeerId];
|
const otherPeer = this._rooms[peer.ip][otherPeerId];
|
||||||
this._send(otherPeer, {
|
this._send(otherPeer, {
|
||||||
type: 'peer-joined',
|
type: 'peer-joined',
|
||||||
|
@ -96,6 +97,7 @@ class SnapdropServer {
|
||||||
// notify peer about the other peers
|
// notify peer about the other peers
|
||||||
const otherPeers = [];
|
const otherPeers = [];
|
||||||
for (const otherPeerId in this._rooms[peer.ip]) {
|
for (const otherPeerId in this._rooms[peer.ip]) {
|
||||||
|
if (otherPeerId === peer.id) continue;
|
||||||
otherPeers.push(this._rooms[peer.ip][otherPeerId].getInfo());
|
otherPeers.push(this._rooms[peer.ip][otherPeerId].getInfo());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue