git ssb

1+

Daan Patchwork / manyverse



Commit e37914e2d74bb33aff33f6c1f3a67d687f5e3d9e

ux: fix some LAN connections appearing as "unknown"

Andre Staltz committed on 8/22/2019, 10:17:02 AM
Parent: e20991a8b011bc5509ae7013ec74a25aa0be7a2f

Files changed

package.jsonchanged
src/backend/package-lock.jsonchanged
src/backend/package.jsonchanged
src/backend/plugins/connUtils.tschanged
package.jsonView
@@ -91,13 +91,13 @@
9191 "remark-images-to-ssb-serve-blobs": "2.1.0-1",
9292 "remark-linkify-regex": "1.0.0",
9393 "spawn-sync": "1.0.15",
9494 "ssb-client": "4.5.7",
95- "ssb-conn-query": "0.3.1",
95+ "ssb-conn-query": "0.4.0",
9696 "ssb-feed": "2.3.0",
9797 "ssb-ref": "2.9.1",
9898 "ssb-serve-blobs": "2.1.0",
99- "ssb-room": "0.0.11",
99+ "ssb-room": "0.1.3",
100100 "ssb-threads": "3.4.0",
101101 "ssb-typescript": "1.4.0",
102102 "thread-sleep": "2.0.0",
103103 "utf-8-validate": "4.0.2",
@@ -132,5 +132,5 @@
132132 "react-native": {
133133 "os": "react-native-os-staltz",
134134 "rn-viewpager": "@staltz/rn-viewpager"
135135 }
136-}
136+}
src/backend/package-lock.jsonView
The diff is too large to show. Use a local git client to view these changes.
Old file size: 243805 bytes
New file size: 243805 bytes
src/backend/package.jsonView
@@ -29,9 +29,9 @@
2929 "ssb-backlinks": "0.7.3",
3030 "ssb-blobs": "1.2.2",
3131 "ssb-bluetooth": "1.1.14",
3232 "ssb-config": "3.3.2",
33- "ssb-conn": "0.8.5",
33+ "ssb-conn": "0.9.2",
3434 "ssb-contacts": "0.0.2",
3535 "ssb-db": "19.2.0",
3636 "ssb-dht-invite": "1.1.1",
3737 "ssb-ebt": "5.6.7",
@@ -44,9 +44,9 @@
4444 "ssb-private": "0.2.3",
4545 "ssb-query": "2.4.2",
4646 "ssb-ref": "2.13.9",
4747 "ssb-replicate": "1.3.0",
48- "ssb-room": "0.1.2",
48+ "ssb-room": "0.1.3",
4949 "ssb-serve-blobs": "2.1.0",
5050 "ssb-threads": "3.4.0",
5151 "ssb-typescript": "1.4.0",
5252 "utf-8-validate": "5.0.2",
@@ -54,5 +54,5 @@
5454 },
5555 "devDependencies": {
5656 "noderify": "4.1.0"
5757 }
58-}
58+}
src/backend/plugins/connUtils.tsView
@@ -9,9 +9,9 @@
99 function init(sbot: any) {
1010 return {
1111 persistentConnect(address: string, data: any, cb: Callback) {
1212 // if we had 'autoconnect=false', then make it true
13- sbot.conn.internalConnDB().update(address, (prev: any) => {
13+ sbot.conn.db().update(address, (prev: any) => {
1414 if (!prev.autoconnect) return {autoconnect: true};
1515 else return {};
1616 });
1717
@@ -19,9 +19,9 @@
1919 },
2020
2121 persistentDisconnect(address: string, cb: Callback) {
2222 // if we had 'autoconnect=true', then make it false
23- sbot.conn.internalConnDB().update(address, (prev: any) => {
23+ sbot.conn.db().update(address, (prev: any) => {
2424 if (prev.autoconnect) return {autoconnect: false};
2525 else return {};
2626 });
2727
@@ -30,9 +30,9 @@
3030 },
3131
3232 isInDB(address: string, cb: Callback) {
3333 try {
34- const result = sbot.conn.internalConnDB().has(address);
34+ const result = sbot.conn.db().has(address);
3535 cb(null, result);
3636 } catch (err) {
3737 cb(err);
3838 }

Built with git-ssb-web