From 768c9e2024140537672a453432c0cc8b1d25ca29 Mon Sep 17 00:00:00 2001 From: Seth Call Date: Tue, 3 Feb 2015 09:49:19 -0600 Subject: [PATCH] VRFS-2739 - remove aggressive check for bad session info and add some basic tests to catch errors in the future --- .../assets/javascripts/notificationPanel.js | 6 +-- web/app/views/clients/_sidebar.html.erb | 2 +- web/spec/features/notification_spec.rb | 38 +++++++++++++++++++ 3 files changed, 42 insertions(+), 4 deletions(-) create mode 100644 web/spec/features/notification_spec.rb diff --git a/web/app/assets/javascripts/notificationPanel.js b/web/app/assets/javascripts/notificationPanel.js index fdf0ac3ee..7c3e608de 100644 --- a/web/app/assets/javascripts/notificationPanel.js +++ b/web/app/assets/javascripts/notificationPanel.js @@ -221,9 +221,9 @@ $.each(response, function(index, val) { // this means the session no longer exists - if (response.fan_access == null && response.musician_access == null) { - return; - } + //if (response.fan_access == null && response.musician_access == null) { + // return; + //} if(val.description == context.JK.MessageType.TEXT_MESSAGE) { val.formatted_msg = textMessageDialog.formatTextMessage(val.message.substring(0, 200), val.source_user_id, val.source_user.name, val.message.length > 200).html(); diff --git a/web/app/views/clients/_sidebar.html.erb b/web/app/views/clients/_sidebar.html.erb index dbb92c66a..b8d44dc68 100644 --- a/web/app/views/clients/_sidebar.html.erb +++ b/web/app/views/clients/_sidebar.html.erb @@ -210,7 +210,7 @@