From 3408e16013ed331826dfc3ef7da0767041f7443d Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 26 Dec 2017 11:59:03 +0000 Subject: [PATCH] Only mark journals that have been shared with us as unsupported. Journals that we've shared are supported even if we share them, so make the check a bit more explicit so we show them. --- src/SideMenu/SideMenuJournals.tsx | 3 ++- src/SyncGate.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/SideMenu/SideMenuJournals.tsx b/src/SideMenu/SideMenuJournals.tsx index 7236890..2b50956 100644 --- a/src/SideMenu/SideMenuJournals.tsx +++ b/src/SideMenu/SideMenuJournals.tsx @@ -21,7 +21,8 @@ class SideMenuJournals extends React.PureComponent { const derived = this.props.etesync.encryptionKey; const journalMap = this.props.journals.reduce( (ret, journal) => { - if (journal.key) { + // FIXME: Skip shared journals for now + if (journal.key && (journal.owner !== this.props.etesync.credentials.email)) { const key = 'UNSUPPORTED'; ret[key] = ret[key] || []; ret[key].push( diff --git a/src/SyncGate.tsx b/src/SyncGate.tsx index c9fffce..32ec5df 100644 --- a/src/SyncGate.tsx +++ b/src/SyncGate.tsx @@ -53,7 +53,7 @@ const syncInfoSelector = createSelector( } // FIXME: Skip shared journals for now - if (journal.key) { + if (journal.key && (journal.owner !== etesync.credentials.email)) { return ret; }