big messaging refactor. split UI from logic

This commit is contained in:
ansuz
2017-08-08 17:13:10 +02:00
parent fc95f1b6a8
commit 58b3b32cc3
3 changed files with 208 additions and 136 deletions

View File

@@ -51,7 +51,8 @@ define([
APP.messenger.setEditable(true);
});
APP.messenger = Cryptpad.initMessaging(Cryptpad, $list, $messages);
var ui = APP.ui = Cryptpad.initMessagingUI(Cryptpad, $list, $messages);
APP.messenger = Cryptpad.initMessaging(Cryptpad, ui);
var $infoBlock = $('<div>', {'class': 'info'}).appendTo($messages);
$('<h2>').text(Messages.contacts_info1).appendTo($infoBlock);