From 7dd0fb70b5fffe841f9864d5c9f5cfe2bbfb2e15 Mon Sep 17 00:00:00 2001 From: lilia Date: Sat, 5 Dec 2015 18:46:56 -0800 Subject: [PATCH] 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 --- js/views/inbox_view.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/js/views/inbox_view.js b/js/views/inbox_view.js index 97bf2428..9684706c 100644 --- a/js/views/inbox_view.js +++ b/js/views/inbox_view.js @@ -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();