Remove unused code

Here lies the remains of the old compose flow, which must eventually be
restored for group creation flow, but will likely be rewritten entirely.

// FREEBIE
This commit is contained in:
lilia 2015-12-05 18:46:56 -08:00
parent 65c13adf5e
commit 7dd0fb70b5

View file

@ -67,12 +67,6 @@
model: { appWindow: options.appWindow }
});
this.newConversationView = new Whisper.NewConversationView({
appWindow: options.appWindow
});
this.listenTo(this.newConversationView, 'open',
this.openConversation.bind(this, null));
var inboxCollection = getInboxCollection();
this.inboxListView = new Whisper.ConversationListView({
el : this.$('.inbox'),
@ -121,7 +115,6 @@
'click': 'closeMenu',
'click .hamburger': 'toggleMenu',
'click .show-debug-log': 'showDebugLog',
'click .show-new-conversation': 'showCompose',
'select .gutter .conversation-list-item': 'openConversation',
'input input.search': 'filterContacts'
},
@ -138,16 +131,6 @@
this.searchView.hideHints();
conversation = ConversationController.create(conversation);
this.conversation_stack.open(conversation);
this.hideCompose();
},
showCompose: function() {
this.newConversationView.reset();
this.newConversationView.$el.prependTo(this.conversation_stack.el);
this.newConversationView.$input.focus();
this.listenToOnce(this.newConversationView, 'back', this.hideCompose);
},
hideCompose: function() {
this.newConversationView.$el.remove();
},
toggleMenu: function() {
this.$('.global-menu .menu-list').toggle();