From 0cec0e651bd2d2b8e6a00e783b8370ab7467827d Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Mon, 20 Mar 2023 17:11:45 +0300 Subject: [PATCH] godfather ver 0.0.54 --- pom.xml | 2 +- .../telegram/main/consumer/MessageChatMailConvert.java | 2 +- .../godfather/telegram/main/consumer/MessageMailConvert.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index c4c354e..1d92a65 100644 --- a/pom.xml +++ b/pom.xml @@ -39,7 +39,7 @@ UTF-8 UTF-8 - 0.0.54-SNAPSHOT + 0.0.54 6.3.0 diff --git a/telegram-consumer/telegram-consumer-main/src/main/java/dev/struchkov/godfather/telegram/main/consumer/MessageChatMailConvert.java b/telegram-consumer/telegram-consumer-main/src/main/java/dev/struchkov/godfather/telegram/main/consumer/MessageChatMailConvert.java index c4120bd..fba2b82 100644 --- a/telegram-consumer/telegram-consumer-main/src/main/java/dev/struchkov/godfather/telegram/main/consumer/MessageChatMailConvert.java +++ b/telegram-consumer/telegram-consumer-main/src/main/java/dev/struchkov/godfather/telegram/main/consumer/MessageChatMailConvert.java @@ -50,7 +50,7 @@ public final class MessageChatMailConvert { final User fromUser = message.getFrom(); mail.setFirstName(fromUser.getFirstName()); mail.setLastName(fromUser.getLastName()); - mail.setPayload(MailPayload.USERNAME, fromUser.getUserName()); + mail.addPayload(MailPayload.USERNAME, fromUser.getUserName()); mail.setFromPersonId(fromUser.getId().toString()); convertDocument(message.getDocument()).ifPresent(mail::addAttachment); diff --git a/telegram-consumer/telegram-consumer-main/src/main/java/dev/struchkov/godfather/telegram/main/consumer/MessageMailConvert.java b/telegram-consumer/telegram-consumer-main/src/main/java/dev/struchkov/godfather/telegram/main/consumer/MessageMailConvert.java index 8649fd8..26157b1 100644 --- a/telegram-consumer/telegram-consumer-main/src/main/java/dev/struchkov/godfather/telegram/main/consumer/MessageMailConvert.java +++ b/telegram-consumer/telegram-consumer-main/src/main/java/dev/struchkov/godfather/telegram/main/consumer/MessageMailConvert.java @@ -50,7 +50,7 @@ public final class MessageMailConvert { final Chat chat = message.getChat(); mail.setFirstName(chat.getFirstName()); mail.setLastName(chat.getLastName()); - mail.setPayload(MailPayload.USERNAME, chat.getUserName()); + mail.addPayload(MailPayload.USERNAME, chat.getUserName()); convertDocument(message.getDocument()).ifPresent(mail::addAttachment); convertContact(message.getContact()).ifPresent(mail::addAttachment);