dexie-relay
Advanced tools
Comparing version 1.0.6 to 1.0.7
13
index.js
@@ -155,2 +155,3 @@ import {Client} from 'relay-to-relay' | ||
adds.add(datas.iden) | ||
client.onMesh(data, nick) | ||
} else if(datas.status === 'edit'){ | ||
@@ -162,2 +163,3 @@ if(edits.has(datas.iden)){ | ||
edits.set(datas.iden, datas.edit) | ||
client.onMesh(data, nick) | ||
} else { | ||
@@ -169,15 +171,16 @@ return | ||
edits.set(datas.iden, datas.edit) | ||
client.onMesh(data, nick) | ||
} | ||
} else if(datas.status === 'sub'){ | ||
if(subs.has(datas.iden)){ | ||
return | ||
} | ||
if(!keep){ | ||
if(subs.has(datas.iden)){ | ||
return | ||
} | ||
await db[datas.name].delete(datas.iden) | ||
subs.add(datas.iden) | ||
} | ||
subs.add(datas.iden) | ||
client.onMesh(data, nick) | ||
} else { | ||
return | ||
} | ||
client.onMesh(data, nick) | ||
} else { | ||
@@ -184,0 +187,0 @@ if(datas.session){ |
{ | ||
"name": "dexie-relay", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
10098
241