Fix double-opening exsisting conversations from typeahead
This commit is contained in:
@@ -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));
|
||||||
|
Reference in New Issue
Block a user