Refactor conversation list view

Pull apart UI classes for displaying and creating threads.
Also get rid of ugly alert popup in favor of Whisper.notify.
This commit is contained in:
lilia
2014-06-07 15:51:51 -07:00
parent 1ec6b0aed6
commit ce3c5eb909
5 changed files with 53 additions and 39 deletions

View File

@@ -19,6 +19,9 @@ textsecure.registerOnLoadFunction(function() {
if (textsecure.storage.getUnencrypted("number_id") === undefined) {
extension.navigator.tabs.create("options.html");
} else {
new Whisper.ConversationListView();
new Whisper.ConversationComposeView({el: $('body')});
$('.my-number').text(textsecure.storage.getUnencrypted("number_id").split(".")[0]);
textsecure.storage.putUnencrypted("unreadCount", 0);
extension.navigator.setBadgeText("");