From 4b444708f2594028e47dad91f1e90728592474ae Mon Sep 17 00:00:00 2001
From: taehoon
Date: Thu, 15 Aug 2019 13:07:07 -0400
Subject: fix pin showing logic in conversation
---
src/components/conversation/conversation.js | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
(limited to 'src/components/conversation/conversation.js')
diff --git a/src/components/conversation/conversation.js b/src/components/conversation/conversation.js
index a2b3aeab..cb4db8ea 100644
--- a/src/components/conversation/conversation.js
+++ b/src/components/conversation/conversation.js
@@ -1,4 +1,4 @@
-import { reduce, filter, findIndex, clone } from 'lodash'
+import { reduce, filter, findIndex, clone, keyBy } from 'lodash'
import Status from '../status/status.vue'
const sortById = (a, b) => {
@@ -42,7 +42,7 @@ const conversation = {
'statusoid',
'collapsable',
'isPage',
- 'showPinned'
+ 'pinnedStatusIds'
],
created () {
if (this.isPage) {
@@ -104,6 +104,9 @@ const conversation = {
},
isExpanded () {
return this.expanded || this.isPage
+ },
+ pinnedStatusIdsObject () {
+ return keyBy(this.pinnedStatusIds, id => id)
}
},
components: {
--
cgit v1.2.3-70-g09d2