forked from AkkomaGang/akkoma-fe
Reset thread open state when collapsed
This commit is contained in:
parent
10cd03c718
commit
26670e9003
1 changed files with 5 additions and 2 deletions
|
@ -334,8 +334,7 @@ const conversation = {
|
||||||
if (value) {
|
if (value) {
|
||||||
this.fetchConversation()
|
this.fetchConversation()
|
||||||
} else {
|
} else {
|
||||||
// if we collapse it, we should reset the dive
|
this.resetDisplayState()
|
||||||
this.undive()
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
virtualHidden (value) {
|
virtualHidden (value) {
|
||||||
|
@ -492,6 +491,10 @@ const conversation = {
|
||||||
parent = this.parentOf(parent)
|
parent = this.parentOf(parent)
|
||||||
}
|
}
|
||||||
return cur
|
return cur
|
||||||
|
},
|
||||||
|
resetDisplayState () {
|
||||||
|
this.undive()
|
||||||
|
this.threadDisplayStatusObject = {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue