Skip to content

Commit

Permalink
feat: ignore blocked bot messages and buttons
Browse files Browse the repository at this point in the history
Co-authored-by: Next Alone <12210746+NextAlone@users.noreply.github.com>
  • Loading branch information
omg-xtao and NextAlone committed Jan 1, 2024
1 parent 92e61c9 commit e30199d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8411,7 +8411,7 @@ private void setMessageContent(MessageObject messageObject, MessageObject.Groupe
botButtonsByPosition.clear();
botButtonsLayout = null;
}
if (!messageObject.isRestrictedMessage && !messageObject.isRepostPreview && currentPosition == null && (messageObject.messageOwner.reply_markup instanceof TLRPC.TL_replyInlineMarkup) && !messageObject.hasExtendedMedia()) {
if (!needHide && !messageObject.isRestrictedMessage && !messageObject.isRepostPreview && currentPosition == null && (messageObject.messageOwner.reply_markup instanceof TLRPC.TL_replyInlineMarkup) && !messageObject.hasExtendedMedia()) {
int rows;

if (messageObject.messageOwner.reply_markup instanceof TLRPC.TL_replyInlineMarkup) {
Expand Down

0 comments on commit e30199d

Please sign in to comment.