From 33ee9bd9512be0d5ed718750cc21e13f77c3454e Mon Sep 17 00:00:00 2001 From: Tor Hveem Date: Fri, 18 Oct 2013 15:58:26 +0200 Subject: [PATCH] fix bug with new buffers and notify level --- js/models.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/models.js b/js/models.js index a1270d9..f10d9bf 100644 --- a/js/models.js +++ b/js/models.js @@ -16,13 +16,18 @@ models.service('models', ['$rootScope', 'colors', function($rootScope, colors) { var number = message['number'] var pointer = message['pointers'][0] var local_variables = message['local_vars']; - var notify = message['notify']; + var notify = 1; // Default 1 var lines = [] var active = false var notification = 0 var unread = 0 var lastSeen = -2 + // Buffer opened message does not include notify level + if( message['notify'] ) { + notify = message['notify']; + } + /* * Adds a line to this buffer *