Move ui init out of nacl callback and remove some lines that no longer apply
This commit is contained in:
parent
def32f42d4
commit
df95a7f71a
1 changed files with 5 additions and 8 deletions
13
js/popup.js
13
js/popup.js
|
@ -15,19 +15,16 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
new Whisper.ConversationListView({el: $('#contacts')});
|
||||||
|
new Whisper.ConversationComposeView({el: $('body')});
|
||||||
|
Whisper.Threads.fetch({reset: true});
|
||||||
|
|
||||||
textsecure.registerOnLoadFunction(function() {
|
textsecure.registerOnLoadFunction(function() {
|
||||||
if (textsecure.storage.getUnencrypted("number_id") === undefined) {
|
if (textsecure.storage.getUnencrypted("number_id") === undefined) {
|
||||||
extension.navigator.tabs.create("options.html");
|
extension.navigator.tabs.create("options.html");
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
new Whisper.ConversationListView({el: $('#contacts')});
|
|
||||||
new Whisper.ConversationComposeView({el: $('body')});
|
|
||||||
Whisper.Threads.fetch({reset: true});
|
|
||||||
$('.my-number').text(textsecure.storage.getUnencrypted("number_id").split(".")[0]);
|
|
||||||
textsecure.storage.putUnencrypted("unreadCount", 0);
|
textsecure.storage.putUnencrypted("unreadCount", 0);
|
||||||
extension.navigator.setBadgeText("");
|
extension.navigator.setBadgeText("");
|
||||||
$("#me").click(function() {
|
|
||||||
$('#popup_send_numbers').val($('.my-number').text());
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue