Skip to content

Commit

Permalink
fix: images not forwarded under command mode
Browse files Browse the repository at this point in the history
  • Loading branch information
xslingcn committed May 9, 2022
1 parent e162da8 commit a567956
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void handle() {
// if is random message that needs to be forwarded under `command` mode
String userName = phenyl.getStorage().getBinding(senderId).mcname();
if (userName == null) throw new IllegalArgumentException(i18n("notBoundYet"));
phenyl.getForwarder().forwardToServer(group, senderId, messageString.substring(1), nameCardOrNick, null);
phenyl.getForwarder().forwardToServer(group, senderId, messageString.substring(1), nameCardOrNick, images);
}
return true;
} catch (IllegalArgumentException ex) {
Expand All @@ -65,7 +65,6 @@ public void handle() {
.append(ex.getMessage())
.build();
phenyl.getMessenger().sendGroup(group, reply);
if (Config.debug) ex.printStackTrace();
return false;
}
}).orTimeout(3, TimeUnit.SECONDS);
Expand Down

0 comments on commit a567956

Please # to comment.