1
0
mirror of https://github.com/NekoX-Dev/NekoX.git synced 2025-01-26 06:59:54 +01:00

Fix NPE for 793fd0d5

This commit is contained in:
luvletter2333 2021-05-05 22:17:32 +08:00
parent 74fe32e2f8
commit b47d649861
No known key found for this signature in database
GPG Key ID: BFD68B892BECC1D8

View File

@ -789,7 +789,7 @@ public class ChatMessageCell extends BaseCell implements SeekBar.SeekBarDelegate
private boolean needHideMessage() {
return currentMessageObject.messageOwner.hide ||
MessagesController.getInstance(currentAccount).blockePeers.indexOfKey(currentMessageObject.getFromChatId()) >= 0 &&
NekoConfig.ignoreBlocked && !(getParent().getClass().getName().contains("ChannelAdminLogActivity"));
NekoConfig.ignoreBlocked && !(getParent() != null && getParent().getClass().getName().contains("ChannelAdminLogActivity"));
}
public ChatMessageCell(Context context) {