Move message saving out of helpers.js

This commit is contained in:
Matt Corallo 2014-05-18 19:50:08 -04:00
parent 3bd559bbaa
commit be82547ea1
2 changed files with 3 additions and 6 deletions

View file

@ -21,6 +21,7 @@ textsecure.registerOnLoadFunction(function() {
} else {
if (isRegistrationDone()) {
textsecure.subscribeToPush(function(message) {
Whisper.Messages.addIncomingMessage(message);
console.log("Got message from " + message.pushMessage.source + "." + message.pushMessage.sourceDevice +
': "' + getString(message.message.body) + '"');
var newUnreadCount = storage.getUnencrypted("unreadCount", 0) + 1;