sometimes profile cards became "sticky", so always make sure there's no card over streams that don't have the qvitter-user-array header

This commit is contained in:
Hannes Mannerheim 2015-09-21 02:10:23 +02:00
parent d8abe400a7
commit bf0c0fcbc9

View File

@ -631,6 +631,10 @@ function setNewCurrentStream(streamObject,setLocation,fallbackId,actionOnSuccess
if(userArray) { if(userArray) {
addProfileCardToDOM(buildProfileCard(userArray)); addProfileCardToDOM(buildProfileCard(userArray));
} }
// remove any trailing profile cards
else {
$('.profile-card').remove();
}
// show group profile card if this is a group stream // show group profile card if this is a group stream
if(streamObject.name == 'group notice stream' if(streamObject.name == 'group notice stream'