Widget: larger prechat textarea, check email for participant activity, fix notification sound

This commit is contained in:
Abhinav Raut
2026-03-28 18:32:08 +05:30
parent a67f14ce5e
commit 2f81d60a6f
2 changed files with 4 additions and 4 deletions
@@ -179,7 +179,7 @@
<Textarea
v-model="messageText"
:placeholder="$t('globals.terms.typeMessage')"
class="w-full min-h-20 max-h-32 resize-none"
class="w-full min-h-32 max-h-48 resize-none"
/>
</div>
</form>
+3 -3
View File
@@ -1416,11 +1416,11 @@ func (c *Manager) addConversationParticipant(userID int, conversationUUID string
return envelope.NewError(envelope.GeneralError, c.i18n.T("globals.messages.somethingWentWrong"), nil)
}
// New participant added - log activity only for contacts (not agents) who differ from conversation contact.
// New participant added - log activity only for contacts with a different email than the conversation contact.
conversation, convErr := c.GetConversation(0, conversationUUID, "")
if convErr == nil && conversation.ContactID != userID {
if convErr == nil {
user, userErr := c.userStore.Get(userID, "", []string{})
if userErr == nil && user.Type == umodels.UserTypeContact {
if userErr == nil && user.Type == umodels.UserTypeContact && !strings.EqualFold(user.Email.String, conversation.Contact.Email.String) {
participantName := user.Email.String
if user.FirstName != "" {
participantName = user.FirstName