修复EventHack中频道消息处理不当导致空指针报错的问题

This commit is contained in:
A.C.Sukazyo Eyre 2022-06-07 16:35:54 +08:00
parent 072a37b49b
commit 22a3f7aefb
Signed by: Eyre_S
GPG Key ID: EFB47D98FE082FAD
3 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
## Core ## Core
VERSION = 0.7.1.2 VERSION = 0.7.1.3
CODENAME = fuzhou CODENAME = fuzhou

View File

@ -4,7 +4,7 @@ package cc.sukazyo.cono.morny;
* the final field that will be updated by gradle automatically. * the final field that will be updated by gradle automatically.
*/ */
public class GradleProjectConfigures { public class GradleProjectConfigures {
public static final String VERSION = "0.7.1.2"; public static final String VERSION = "0.7.1.3";
public static final String CODENAME = "fuzhou"; public static final String CODENAME = "fuzhou";
public static final long COMPILE_TIMESTAMP = 1654487392325L; public static final long COMPILE_TIMESTAMP = 1654590942119L;
} }

View File

@ -84,12 +84,12 @@ public class OnEventHackHandle extends EventListener {
@Override @Override
public boolean onChannelPost (@Nonnull Update update) { public boolean onChannelPost (@Nonnull Update update) {
return onEventHacked(update, update.channelPost().chat().id(), update.channelPost().from().id()); return onEventHacked(update, update.channelPost().chat().id(), update.channelPost().chat().id());
} }
@Override @Override
public boolean onEditedChannelPost (@Nonnull Update update) { public boolean onEditedChannelPost (@Nonnull Update update) {
return onEventHacked(update, update.editedChannelPost().chat().id(), update.editedChannelPost().from().id()); return onEventHacked(update, update.editedChannelPost().chat().id(), update.editedChannelPost().chat().id());
} }
@Override @Override