Bug and test fixes for contact sync

Closes #135

// FREEBIE
This commit is contained in:
lilia 2015-06-17 15:59:14 -07:00
parent 6a5f923cac
commit 8dc4e34aaf
4 changed files with 29 additions and 13 deletions

View file

@ -53,7 +53,8 @@
messageReceiver = new textsecure.MessageReceiver(window);
}
function onContactReceived(contactInfo) {
function onContactReceived(ev) {
var contactInfo = ev.contactInfo;
new Whisper.Conversation({
name: contactInfo.name,
id: contactInfo.number,
@ -63,7 +64,8 @@
}).save();
}
function onGroupReceived(group) {
function onGroupReceived(ev) {
var group = ev.group;
new Whisper.Conversation({
members: group.members,
name: group.name,