From ed8d17eea3d2a2fab8c448b8cebf22c3a1c4d8a2 Mon Sep 17 00:00:00 2001 From: Sam Steele Date: Fri, 16 Dec 2022 12:17:41 -0500 Subject: [PATCH] Send replies to the correct thread when retrying a failed message --- build.gradle | 2 +- src/com/irccloud/android/activity/MainActivity.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index f3864650..9f84faa2 100644 --- a/build.gradle +++ b/build.gradle @@ -69,7 +69,7 @@ android { testBuildType "mockdata" defaultConfig { - versionCode 338 + versionCode 339 versionName "4.29" minSdkVersion 22 targetSdkVersion 31 diff --git a/src/com/irccloud/android/activity/MainActivity.java b/src/com/irccloud/android/activity/MainActivity.java index b34735a7..dd2af5ac 100644 --- a/src/com/irccloud/android/activity/MainActivity.java +++ b/src/com/irccloud/android/activity/MainActivity.java @@ -5538,8 +5538,8 @@ public void onIRCResult(IRCCloudJSONObject result) { } } }; - if(msgid != null) - e.reqid = NetworkConnection.getInstance().reply(e.cid, e.chan, e.command, msgid, callback); + if(e.is_reply) + e.reqid = NetworkConnection.getInstance().reply(e.cid, e.chan, e.command, e.reply, callback); else e.reqid = NetworkConnection.getInstance().say(e.cid, e.chan, e.command, callback); if (e.reqid >= 0) {