v0.6.1 no conversation update with news length 0
This commit is contained in:
parent
72d0f8ff69
commit
c5df85b820
2 changed files with 31 additions and 22 deletions
|
@ -138,7 +138,7 @@ if(msg.deleteId!==undefined)
|
|||
msg.model.sync()
|
||||
}
|
||||
else{
|
||||
if(msg.method=="refresh" ||msg.method=="conversation"){msg.model.clear()};
|
||||
if(msg.method=="refresh" ||(msg.method=="conversation"&&msg.news.length>0)){msg.model.clear()};
|
||||
msg.model.sync()
|
||||
for (var j=0;j<msg.news.length;j++){
|
||||
if (msg.news[j]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue