mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-09-23 19:06:35 +00:00
Widget: larger prechat textarea, check email for participant activity, fix notification sound
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user