Compare commits

..

2 Commits

Author SHA1 Message Date
schlagmichdoch
29b91cb17a increase version to v1.7.6 2023-06-01 01:51:51 +02:00
schlagmichdoch
26bf4d6dc3 ensure that otherPeers never receive peer-left after peer-joined on reconnect by leaving room before rejoining it 2023-06-01 01:49:07 +02:00
7 changed files with 12 additions and 7 deletions

View File

@@ -362,6 +362,11 @@ class PairDropServer {
_joinRoom(peer, roomType = 'ip', roomSecret = '') {
const room = roomType === 'ip' ? peer.ip : roomSecret;
if (this._rooms[room] && this._rooms[room][peer.id]) {
// ensures that otherPeers never receive `peer-left` after `peer-joined` on reconnect.
this._leaveRoom(peer, roomType, roomSecret);
}
// if room doesn't exist, create it
if (!this._rooms[room]) {
this._rooms[room] = {};

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "pairdrop",
"version": "1.7.5",
"version": "1.7.6",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "pairdrop",
"version": "1.7.5",
"version": "1.7.6",
"license": "ISC",
"dependencies": {
"express": "^4.18.2",

View File

@@ -1,6 +1,6 @@
{
"name": "pairdrop",
"version": "1.7.5",
"version": "1.7.6",
"description": "",
"main": "index.js",
"scripts": {

View File

@@ -278,7 +278,7 @@
</svg>
<div class="title-wrapper">
<h1>PairDrop</h1>
<div class="font-subheading">v1.7.5</div>
<div class="font-subheading">v1.7.6</div>
</div>
<div class="font-subheading">The easiest way to transfer files across devices</div>
<div class="row">

View File

@@ -1,4 +1,4 @@
const cacheVersion = 'v1.7.5';
const cacheVersion = 'v1.7.6';
const cacheTitle = `pairdrop-cache-${cacheVersion}`;
const urlsToCache = [
'index.html',

View File

@@ -281,7 +281,7 @@
</svg>
<div class="title-wrapper">
<h1>PairDrop</h1>
<div class="font-subheading">v1.7.5</div>
<div class="font-subheading">v1.7.6</div>
</div>
<div class="font-subheading">The easiest way to transfer files across devices</div>
<div class="row">

View File

@@ -1,4 +1,4 @@
const cacheVersion = 'v1.7.5';
const cacheVersion = 'v1.7.6';
const cacheTitle = `pairdrop-included-ws-fallback-cache-${cacheVersion}`;
const urlsToCache = [
'index.html',