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:
parent
1ec6b0aed6
commit
ce3c5eb909
5 changed files with 53 additions and 39 deletions
|
@ -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("");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue