mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 13:59:23 +00:00
Fixed conversation caching storage issue
This commit is contained in:
parent
03f6c9552d
commit
c97b51620a
@ -52,8 +52,13 @@ ComunicWeb.components.conversations.cachingOpened = {
|
|||||||
conversations.splice(entryNumber, 1);
|
conversations.splice(entryNumber, 1);
|
||||||
|
|
||||||
//Save the new values
|
//Save the new values
|
||||||
var conversationsString = conversations.join(";");
|
if(conversations.length === 0){
|
||||||
sessionStorage.setItem(this.__varName, conversationsString);
|
this.emptyStorage(); //Clear storage
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
var conversationsString = conversations.join(";");
|
||||||
|
sessionStorage.setItem(this.__varName, conversationsString);
|
||||||
|
}
|
||||||
|
|
||||||
//Success
|
//Success
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user