Pin todo and trim its history

pull/1/head
yflory 5 years ago
parent 72d41e34fe
commit 415fc27539

@ -166,7 +166,7 @@ define([
// It now includes channels from shared folders
var list = store.manager.getChannelsList('pin');
// Get the avatar
// Get the avatar & profile
var profile = store.proxy.profile;
if (profile) {
var profileChan = profile.edit ? Hash.hrefToHexChannelId('/profile/#' + profile.edit, null) : null;
@ -175,6 +175,10 @@ define([
if (avatarChan) { list.push(avatarChan); }
}
if (store.proxy.todo) {
list.push(Hash.hrefToHexChannelId('/todo/#' + store.proxy.todo, null));
}
if (store.proxy.friends) {
var fList = Messaging.getFriendChannelsList(store.proxy);
list = list.concat(fList);

@ -24,6 +24,12 @@ define([
if (profileChan) { channels.push(profileChan); }
}
// Todo
if (ctx.store.proxy.todo) {
channels.push(Hash.hrefToHexChannelId('/todo/#' + ctx.store.proxy.todo, null));
}
// Mailboxes
var mailboxes = ctx.store.proxy.mailboxes;
if (mailboxes) {

Loading…
Cancel
Save