DEV: Remove unused function.

This commit is contained in:
Guo Xiang Tan 2020-09-10 15:11:35 +08:00
parent 5732e4288e
commit 81d3c4a7a1
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20

View File

@ -10,7 +10,9 @@ export default Component.extend({
if (!topic || !topic.isPrivateMessage) {
return;
}
const allowedUsers = topic.details.allowed_users;
if (
topic.relatedMessages &&
topic.relatedMessages.length >= 5 &&
@ -28,9 +30,4 @@ export default Component.extend({
`/search?expanded=true&q=%40${this.targetUser.username}%20in%3Apersonal-direct`
);
},
@discourseComputed("topic")
relatedTitleLink(topic) {
return this.currentUser && this.currentUser.pmPath(topic);
},
});