mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-10-18 14:13:21 +00:00
Users dir
This commit is contained in:
parent
c8b96f131f
commit
35750e2b2b
@ -28,7 +28,11 @@ class ExplorerNode extends BaseComponent {
|
||||
|
||||
getNode() {
|
||||
if (this.props.path.length > 1) {
|
||||
const path = this.props.path.split('/');
|
||||
let path = this.props.path;
|
||||
if (path.indexOf('Public/Users') === 0) {
|
||||
path = path.replace('/Users', '');
|
||||
}
|
||||
path = path.split('/');
|
||||
return path.slice(1).reduce((sum, current) => (current && sum.get(decodeURIComponent(current))) || sum, this.props.gun);
|
||||
}
|
||||
return this.props.gun;
|
||||
@ -54,6 +58,7 @@ class ExplorerNode extends BaseComponent {
|
||||
async (v, k, c, e, from) => {
|
||||
if (k === '_') { return; }
|
||||
if (this.isPublicRoot && k.indexOf('~') === 0) { return; }
|
||||
if (this.isUserList && !k.substr(1).match(pubKeyRegex)) { return; }
|
||||
let encryption;
|
||||
if (typeof v === 'string' && v.indexOf('SEA{') === 0) {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user