commit: 26670e90035104fbd24e0884c00b17c6266ba354
parent 10cd03c7186fa57e8cbdd22c4523c98e4ea53c47
Author: Tusooa Zhu <tusooa@kazv.moe>
Date: Wed, 11 Aug 2021 00:22:47 -0400
Reset thread open state when collapsed
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git 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 = {}
}
}
}