Fixed conversation caching storage issue

This commit is contained in:
Pierre 2017-06-18 10:17:39 +02:00
parent 03f6c9552d
commit c97b51620a

View File

@ -52,8 +52,13 @@ ComunicWeb.components.conversations.cachingOpened = {
conversations.splice(entryNumber, 1);
//Save the new values
if(conversations.length === 0){
this.emptyStorage(); //Clear storage
}
else {
var conversationsString = conversations.join(";");
sessionStorage.setItem(this.__varName, conversationsString);
}
//Success
return true;