From 038467d5dbd9ef3f855263648b50f2d7bc836142 Mon Sep 17 00:00:00 2001 From: Taido Purason Date: Fri, 4 Dec 2020 15:08:08 +0200 Subject: [PATCH] Quick fix: when failing to send files, platform will retry to send them. see #49 --- .../xatkit/plugins/messenger/platform/MessengerPlatform.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runtime/src/main/java/com/xatkit/plugins/messenger/platform/MessengerPlatform.java b/runtime/src/main/java/com/xatkit/plugins/messenger/platform/MessengerPlatform.java index cad734a..58f4a74 100644 --- a/runtime/src/main/java/com/xatkit/plugins/messenger/platform/MessengerPlatform.java +++ b/runtime/src/main/java/com/xatkit/plugins/messenger/platform/MessengerPlatform.java @@ -112,8 +112,7 @@ public MessengerResponse sendFile(@NonNull StateContext context, @NonNull String new Recipient(recipientId), new Message(new Attachment(attachmentType, new AttachmentIdPayload(attachmentId)))); Log.debug("SENDING FILE TO: {0}", recipientId); - return reply(new Reply(this, context, messaging) - ); + return reply(new MessageReply(this, context, messaging)); } /**