fix filtering by addr in handleNotificationsItems()

(cherry picked from commit f083c0cba1)
This commit is contained in:
Mario Vavti
2018-12-02 09:58:54 +00:00
committed by Mario
parent 52424b0f9c
commit f13b1e8604
2 changed files with 3 additions and 2 deletions

View File

@@ -558,7 +558,8 @@ function handleNotificationsItems(notifyType, data) {
if(filter) {
$('#nav-' + notifyType + '-menu .notification').each(function(i, el){
var cn = $(el).data('contact_name').toString().toLowerCase();
if(cn.indexOf(filter) === -1)
var ca = $(el).data('contact_addr').toString().toLowerCase();
if(cn.indexOf(filter) === -1 && ca.indexOf(filter) === -1)
$(el).addClass('d-none');
else
$(el).removeClass('d-none');