Pin the chat channels

This commit is contained in:
yflory
2017-07-10 10:39:57 +02:00
parent c096872467
commit 1c531ccd47
2 changed files with 18 additions and 1 deletions

View File

@@ -116,6 +116,7 @@ define([
common.inviteFromUserlist = Messaging.inviteFromUserlist;
common.createOwnedChannel = Messaging.createOwnedChannel;
common.getFriendList = Messaging.getFriendList;
common.getFriendChannelsList = Messaging.getFriendChannelsList;
common.getFriendListUI = Messaging.getFriendListUI;
common.createData = Messaging.createData;
@@ -751,6 +752,11 @@ define([
if (avatarChan) { list.push(avatarChan); }
}
if (getProxy().friends) {
var fList = common.getFriendChannelsList(common);
list = list.concat(fList);
}
list.push(common.base64ToHex(userChannel));
list.sort();