From 33a25d28a6365d920e68dc9c2ac1b8d6f73a1b0c Mon Sep 17 00:00:00 2001 From: omg-xtao <100690902+omg-xtao@users.noreply.github.com> Date: Tue, 29 Oct 2024 11:14:54 +0000 Subject: [PATCH] fix: load action log because of new feat --- .../src/main/java/org/telegram/messenger/MessageObject.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/MessageObject.java b/TMessagesProj/src/main/java/org/telegram/messenger/MessageObject.java index 93bc80cc14..5b28cb845f 100644 --- a/TMessagesProj/src/main/java/org/telegram/messenger/MessageObject.java +++ b/TMessagesProj/src/main/java/org/telegram/messenger/MessageObject.java @@ -2671,7 +2671,7 @@ public MessageObject(int accountNum, TLRPC.TL_channelAdminLogEvent event, ArrayL } else { changedCaption = false; } - if (getMedia(newMessage).getClass() != oldMessage.media.getClass() || + if (oldMessage.media == null || getMedia(newMessage).getClass() != oldMessage.media.getClass() || getMedia(newMessage).photo != null && oldMessage.media.photo != null && getMedia(newMessage).photo.id != oldMessage.media.photo.id || getMedia(newMessage).document != null && oldMessage.media.document != null && getMedia(newMessage).document.id != oldMessage.media.document.id) { changedMedia = true;