diff options
| author | Tusooa Zhu <tusooa@kazv.moe> | 2021-08-11 00:22:47 -0400 |
|---|---|---|
| committer | Tusooa Zhu <tusooa@kazv.moe> | 2022-03-07 19:19:30 -0500 |
| commit | 26670e90035104fbd24e0884c00b17c6266ba354 (patch) | |
| tree | 1d982ff0b9f089d71f76f103129ff3875fa758a5 /src/components/conversation | |
| parent | 10cd03c7186fa57e8cbdd22c4523c98e4ea53c47 (diff) | |
Reset thread open state when collapsed
Diffstat (limited to 'src/components/conversation')
| -rw-r--r-- | src/components/conversation/conversation.js | 7 |
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 = {} } } } |
