Skip to content

Commit

Permalink
Fix handling edit message
Browse files Browse the repository at this point in the history
  • Loading branch information
AsamK committed Oct 1, 2023
1 parent 6b2de3a commit 310aadb
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
6 changes: 6 additions & 0 deletions graalvm-config-dir/reflect-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,9 @@
{
"name":"javax.smartcardio.CardPermission"
},
{
"name":"jdk.internal.misc.Unsafe"
},
{
"name":"kotlin.Any"
},
Expand Down Expand Up @@ -1485,6 +1488,9 @@
"name":"org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi$Std",
"methods":[{"name":"<init>","parameterTypes":[] }]
},
{
"name":"org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi.Std"
},
{
"name":"org.bouncycastle.jcajce.provider.symmetric.AES$Mappings",
"methods":[{"name":"<init>","parameterTypes":[] }]
Expand Down
16 changes: 16 additions & 0 deletions graalvm-config-dir/resource-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,26 @@
"pattern":"\\QMETA-INF/maven/org.xerial/sqlite-jdbc/pom.properties\\E"
}, {
"pattern":"\\QMETA-INF/services/ch.qos.logback.classic.spi.Configurator\\E"
}, {
"pattern":"\\QMETA-INF/services/java.lang.System$LoggerFinder\\E"
}, {
"pattern":"\\QMETA-INF/services/java.net.spi.InetAddressResolverProvider\\E"
}, {
"pattern":"\\QMETA-INF/services/java.net.spi.URLStreamHandlerProvider\\E"
}, {
"pattern":"\\QMETA-INF/services/java.nio.channels.spi.SelectorProvider\\E"
}, {
"pattern":"\\QMETA-INF/services/java.sql.Driver\\E"
}, {
"pattern":"\\QMETA-INF/services/java.time.zone.ZoneRulesProvider\\E"
}, {
"pattern":"\\QMETA-INF/services/java.util.spi.ResourceBundleControlProvider\\E"
}, {
"pattern":"\\QMETA-INF/services/kotlin.reflect.jvm.internal.impl.builtins.BuiltInsLoader\\E"
}, {
"pattern":"\\QMETA-INF/services/kotlin.reflect.jvm.internal.impl.resolve.ExternalOverridabilityCondition\\E"
}, {
"pattern":"\\QMETA-INF/services/kotlin.reflect.jvm.internal.impl.util.ModuleVisibilityHelper\\E"
}, {
"pattern":"\\QMETA-INF/services/org.freedesktop.dbus.spi.transport.ITransportProvider\\E"
}, {
Expand Down Expand Up @@ -180,6 +194,8 @@
"pattern":"java.base:\\Qjdk/internal/icu/impl/data/icudt67b/nfc.nrm\\E"
}, {
"pattern":"java.base:\\Qjdk/internal/icu/impl/data/icudt67b/uprops.icu\\E"
}, {
"pattern":"java.base:\\Qjdk/internal/icu/impl/data/icudt72b/uprops.icu\\E"
}, {
"pattern":"java.base:\\Qsun/net/idn/uidna.spp\\E"
}, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,10 @@ public List<HandleAction> handleMessage(
}
}

if (content.getDataMessage().isPresent()) {
var message = content.getDataMessage().get();
if (content.getDataMessage().isPresent() || content.getEditMessage().isPresent()) {
var message = content.getDataMessage().isPresent()
? content.getDataMessage().get()
: content.getEditMessage().get().getDataMessage();

if (content.isNeedsReceipt()) {
actions.add(new SendReceiptAction(sender,
Expand Down

0 comments on commit 310aadb

Please sign in to comment.