feat: Enable custom attributes in the suggestion for variables. (#8520)

This commit is contained in:
Muhsin Keloth
2023-12-20 12:20:09 +05:30
committed by GitHub
parent a59fb90785
commit a80eff9aa3
5 changed files with 78 additions and 30 deletions

View File

@@ -271,6 +271,11 @@ export default {
accountId: 'getCurrentAccountId',
isFeatureEnabledonAccount: 'accounts/isFeatureEnabledonAccount',
}),
currentContact() {
return this.$store.getters['contacts/getContact'](
this.currentChat.meta.sender.id
);
},
shouldShowReplyToMessage() {
return (
this.inReplyTo?.id &&
@@ -509,6 +514,7 @@ export default {
messageVariables() {
const variables = getMessageVariables({
conversation: this.currentChat,
contact: this.currentContact,
});
return variables;
},