aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorTusooa Zhu <tusooa@kazv.moe>2021-08-11 00:22:47 -0400
committerTusooa Zhu <tusooa@kazv.moe>2022-03-07 19:19:30 -0500
commit26670e90035104fbd24e0884c00b17c6266ba354 (patch)
tree1d982ff0b9f089d71f76f103129ff3875fa758a5 /src/components
parent10cd03c7186fa57e8cbdd22c4523c98e4ea53c47 (diff)
Reset thread open state when collapsed
Diffstat (limited to 'src/components')
-rw-r--r--src/components/conversation/conversation.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/conversation/conversation.js b/src/components/conversation/conversation.js
index 3cc5f886..4c429161 100644
--- a/src/components/conversation/conversation.js
+++ b/src/components/conversation/conversation.js
@@ -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 = {}
}
}
}