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.
master
Tom Hacohen 7 years ago
parent 3d9155e306
commit 3408e16013

@ -21,7 +21,8 @@ class SideMenuJournals extends React.PureComponent {
const derived = this.props.etesync.encryptionKey; const derived = this.props.etesync.encryptionKey;
const journalMap = this.props.journals.reduce( const journalMap = this.props.journals.reduce(
(ret, journal) => { (ret, journal) => {
if (journal.key) { // FIXME: Skip shared journals for now
if (journal.key && (journal.owner !== this.props.etesync.credentials.email)) {
const key = 'UNSUPPORTED'; const key = 'UNSUPPORTED';
ret[key] = ret[key] || []; ret[key] = ret[key] || [];
ret[key].push( ret[key].push(

@ -53,7 +53,7 @@ const syncInfoSelector = createSelector(
} }
// FIXME: Skip shared journals for now // FIXME: Skip shared journals for now
if (journal.key) { if (journal.key && (journal.owner !== etesync.credentials.email)) {
return ret; return ret;
} }

Loading…
Cancel
Save