Fix double-opening exsisting conversations from typeahead

This commit is contained in:
lilia 2015-02-01 18:37:10 -10:00
parent b2345a5ec8
commit 9e245e67e0
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@
'click .fab': 'showCompose', 'click .fab': 'showCompose',
'open #contacts': 'openConversation', 'open #contacts': 'openConversation',
'open .contacts': 'openConversation', 'open .contacts': 'openConversation',
'open .new-conversation': 'openConversation', 'open .new-group-update-form': 'openConversation',
'open .new-contact': 'createConversation', 'open .new-contact': 'createConversation',
}, },
openConversation: function(e, data) { openConversation: function(e, data) {

View file

@ -103,7 +103,7 @@ var Whisper = Whisper || {};
var id = getString(groupId); var id = getString(groupId);
var group = new Whisper.Conversation(attributes); var group = new Whisper.Conversation(attributes);
group.save({ id: id, groupId: id }).then(function() { group.save({ id: id, groupId: id }).then(function() {
this.$el.trigger('open', {modelId: id}); this.$group_update.trigger('open', {modelId: id});
}.bind(this)); }.bind(this));
}.bind(this)); }.bind(this));
}.bind(this)); }.bind(this));