|
|
@ -28,6 +28,11 @@ function processDMsnippet(dmUsers, dmThreadList, forGroup) { |
|
|
|
|
|
|
|
|
|
|
|
// convert snipped to html and add it to date-sorted list
|
|
|
|
// convert snipped to html and add it to date-sorted list
|
|
|
|
var dmItem = dmDataToSnippetItem(dmUsers[u][0], u); |
|
|
|
var dmItem = dmDataToSnippetItem(dmUsers[u][0], u); |
|
|
|
|
|
|
|
console.log(u + ': ' + _newDMsPerUser[u]); |
|
|
|
|
|
|
|
if (_newDMsPerUser[u] > 0) { |
|
|
|
|
|
|
|
dmItem.addClass('new') |
|
|
|
|
|
|
|
.find('.messages-qtd').text(_newDMsPerUser[u]).show(); |
|
|
|
|
|
|
|
} |
|
|
|
var timeDmItem = parseInt(dmItem.attr('data-time')); |
|
|
|
var timeDmItem = parseInt(dmItem.attr('data-time')); |
|
|
|
var existingItems = dmThreadList.children(); |
|
|
|
var existingItems = dmThreadList.children(); |
|
|
|
for (var j = 0; j < existingItems.length; j++) { |
|
|
|
for (var j = 0; j < existingItems.length; j++) { |
|
|
|