diff --git a/app/javascript/dashboard/components/widgets/conversation/Message.vue b/app/javascript/dashboard/components/widgets/conversation/Message.vue
index 648a8a317..41d770cf6 100644
--- a/app/javascript/dashboard/components/widgets/conversation/Message.vue
+++ b/app/javascript/dashboard/components/widgets/conversation/Message.vue
@@ -208,7 +208,7 @@ export default {
max-width: 32rem;
padding: var(--space-small) var(--space-normal);
}
-
+
&.is-private .file.message-text__wrap {
.ion-document-text {
color: var(--w-400);
@@ -220,10 +220,18 @@ export default {
color: var(--w-400);
}
}
-
+
&.is-private.is-text > .message-text__wrap .link {
color: var(--w-700);
}
+ &.is-private.is-text > .message-text__wrap .prosemirror-mention-node {
+ font-weight: var(--font-weight-black);
+ background: none;
+ border-radius: var(--border-radius-small);
+ padding: 0;
+ color: var(--color-body);
+ text-decoration: underline;
+ }
}
&.is-pending {
diff --git a/app/javascript/dashboard/i18n/locale/en/contact.json b/app/javascript/dashboard/i18n/locale/en/contact.json
index da85ffab8..cc4e20bb5 100644
--- a/app/javascript/dashboard/i18n/locale/en/contact.json
+++ b/app/javascript/dashboard/i18n/locale/en/contact.json
@@ -43,7 +43,9 @@
"EDIT_CONTACT": {
"BUTTON_LABEL": "Edit Contact",
"TITLE": "Edit contact",
- "DESC": "Edit contact details",
+ "DESC": "Edit contact details"
+ },
+ "CONTACT_FORM": {
"FORM": {
"SUBMIT": "Submit",
"CANCEL": "Cancel",
diff --git a/app/javascript/dashboard/routes/dashboard/conversation/ContactPanel.vue b/app/javascript/dashboard/routes/dashboard/conversation/ContactPanel.vue
index b594420a1..ccf65f329 100644
--- a/app/javascript/dashboard/routes/dashboard/conversation/ContactPanel.vue
+++ b/app/javascript/dashboard/routes/dashboard/conversation/ContactPanel.vue
@@ -7,7 +7,7 @@
+
+
+
+
+
+
diff --git a/app/javascript/dashboard/routes/dashboard/conversation/contact/EditContact.vue b/app/javascript/dashboard/routes/dashboard/conversation/contact/EditContact.vue
index 7b3a828fc..9d9569f62 100644
--- a/app/javascript/dashboard/routes/dashboard/conversation/contact/EditContact.vue
+++ b/app/javascript/dashboard/routes/dashboard/conversation/contact/EditContact.vue
@@ -7,96 +7,23 @@
"
:header-content="$t('EDIT_CONTACT.DESC')"
/>
-
+
-
-
diff --git a/app/javascript/dashboard/routes/dashboard/notifications/components/NotificationTable.vue b/app/javascript/dashboard/routes/dashboard/notifications/components/NotificationTable.vue
index 6521b2551..702c0ef76 100644
--- a/app/javascript/dashboard/routes/dashboard/notifications/components/NotificationTable.vue
+++ b/app/javascript/dashboard/routes/dashboard/notifications/components/NotificationTable.vue
@@ -49,10 +49,12 @@
:username="notificationItem.primary_actor.meta.assignee.name"
/>
-
-
- {{ dynamicTime(notificationItem.created_at) }}
-
+ |
+
+
+ {{ dynamicTime(notificationItem.created_at) }}
+
+
|
:3000"
echo "To configure a domain and SSL certificate, follow the guide at https://www.chatwoot.com/docs/deployment/deploy-chatwoot-in-linux-vm"
-
-# TODO: Auto-configure Nginx with SSL certificate
+else
+read -p 'What is your domain name server (chatwoot.domain.com for example) : ' domain_name
+curl https://ssl-config.mozilla.org/ffdhe4096.txt >> /etc/ssl/dhparam
+wget https://raw.githubusercontent.com/chatwoot/chatwoot/develop/deployment/nginx_chatwoot.conf
+cp nginx_chatwoot.conf /etc/nginx/sites-available/nginx_chatwoot.conf
+certbot certonly --nginx -d $domain_name
+sed -i "s/chatwoot.domain.com/$domain_name/g" /etc/nginx/sites-available/nginx_chatwoot.conf
+ln -s /etc/nginx/sites-available/nginx_chatwoot.conf /etc/nginx/sites-enabled/nginx_chatwoot.conf
+systemctl restart nginx
+sudo -i -u chatwoot << EOF
+cd chatwoot
+sed -i "s/http:\/\/0.0.0.0:3000/https:\/\/$domain_name/g" .env
+EOF
+systemctl restart chatwoot.target
+echo "Woot! Woot!! Chatwoot server installation is complete"
+echo "The server will be accessible at https://$domain_name"
+fi
diff --git a/package.json b/package.json
index 2bb565d32..182dba8d1 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@chatwoot/chatwoot",
- "version": "1.13.0",
+ "version": "1.13.1",
"license": "MIT",
"scripts": {
"eslint": "eslint app/javascript --fix",
diff --git a/spec/models/notification_spec.rb b/spec/models/notification_spec.rb
index 229cc12e0..0978bab4f 100644
--- a/spec/models/notification_spec.rb
+++ b/spec/models/notification_spec.rb
@@ -34,9 +34,11 @@ RSpec.describe Notification do
end
it 'returns appropriate title suited for the notification type assigned_conversation_new_message' do
- notification = create(:notification, notification_type: 'assigned_conversation_new_message')
+ message = create(:message, sender: create(:user), content: Faker::Lorem.paragraphs(number: 2))
+ notification = create(:notification, notification_type: 'assigned_conversation_new_message', primary_actor: message)
- expect(notification.push_message_title).to eq "[New message] - ##{notification.primary_actor.display_id} "
+ expect(notification.push_message_title).to eq "[New message] - ##{notification.conversation.display_id} \
+#{message.content.truncate_words(10)}"
end
it 'returns appropriate title suited for the notification type conversation_mention' do
|