no longer needed since updating is already done (better as well) in searchForUpdatedNoticeData

This commit is contained in:
Hannes Mannerheim 2015-11-23 12:44:36 +01:00
parent 846b051ec4
commit d54da897e4

View File

@ -1366,10 +1366,9 @@ function showConversation(q, qid, data, offsetScroll) {
if(q.hasClass('expanded')) { // add queet to conversation only if still expanded
// replace already existing queets' html
// don't add if already exist in conversation
if(q.children('.stream-item.conversation[data-quitter-id="' + obj.id + '"]').length > 0) {
var streamItemInnerHtml = $('<div/>').append(queetHtml).find('.stream-item').html();
q.children('.stream-item.conversation[data-quitter-id="' + obj.id + '"]').html(streamItemInnerHtml);
// the data in the existing notice is updated automatically in searchForUpdatedNoticeData invoked from getFromAPI
}
else if(before_or_after == 'before') {
q.children('.queet').before(queetHtml);