Reset thread open state when collapsed

This commit is contained in:
Tusooa Zhu 2021-08-11 00:22:47 -04:00
parent e01445b1d9
commit 89761743b8
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224

View file

@ -334,8 +334,7 @@ const conversation = {
if (value) {
this.fetchConversation()
} else {
// if we collapse it, we should reset the dive
this.undive()
this.resetDisplayState()
}
},
virtualHidden (value) {
@ -492,6 +491,10 @@ const conversation = {
parent = this.parentOf(parent)
}
return cur
},
resetDisplayState () {
this.undive()
this.threadDisplayStatusObject = {}
}
}
}