Fix double-opening exsisting conversations from typeahead
This commit is contained in:
parent
b2345a5ec8
commit
9e245e67e0
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
|
@ -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));
|
||||||
|
|
Loading…
Reference in a new issue