Pin todo and trim its history
This commit is contained in:
parent
72d41e34fe
commit
415fc27539
@ -166,7 +166,7 @@ define([
|
|||||||
// It now includes channels from shared folders
|
// It now includes channels from shared folders
|
||||||
var list = store.manager.getChannelsList('pin');
|
var list = store.manager.getChannelsList('pin');
|
||||||
|
|
||||||
// Get the avatar
|
// Get the avatar & profile
|
||||||
var profile = store.proxy.profile;
|
var profile = store.proxy.profile;
|
||||||
if (profile) {
|
if (profile) {
|
||||||
var profileChan = profile.edit ? Hash.hrefToHexChannelId('/profile/#' + profile.edit, null) : null;
|
var profileChan = profile.edit ? Hash.hrefToHexChannelId('/profile/#' + profile.edit, null) : null;
|
||||||
@ -175,6 +175,10 @@ define([
|
|||||||
if (avatarChan) { list.push(avatarChan); }
|
if (avatarChan) { list.push(avatarChan); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (store.proxy.todo) {
|
||||||
|
list.push(Hash.hrefToHexChannelId('/todo/#' + store.proxy.todo, null));
|
||||||
|
}
|
||||||
|
|
||||||
if (store.proxy.friends) {
|
if (store.proxy.friends) {
|
||||||
var fList = Messaging.getFriendChannelsList(store.proxy);
|
var fList = Messaging.getFriendChannelsList(store.proxy);
|
||||||
list = list.concat(fList);
|
list = list.concat(fList);
|
||||||
|
|||||||
@ -24,6 +24,12 @@ define([
|
|||||||
if (profileChan) { channels.push(profileChan); }
|
if (profileChan) { channels.push(profileChan); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Todo
|
||||||
|
if (ctx.store.proxy.todo) {
|
||||||
|
channels.push(Hash.hrefToHexChannelId('/todo/#' + ctx.store.proxy.todo, null));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Mailboxes
|
// Mailboxes
|
||||||
var mailboxes = ctx.store.proxy.mailboxes;
|
var mailboxes = ctx.store.proxy.mailboxes;
|
||||||
if (mailboxes) {
|
if (mailboxes) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user