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);
|
||||
|
||||
//Save the new values
|
||||
var conversationsString = conversations.join(";");
|
||||
sessionStorage.setItem(this.__varName, conversationsString);
|
||||
if(conversations.length === 0){
|
||||
this.emptyStorage(); //Clear storage
|
||||
}
|
||||
else {
|
||||
var conversationsString = conversations.join(";");
|
||||
sessionStorage.setItem(this.__varName, conversationsString);
|
||||
}
|
||||
|
||||
//Success
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user