Skip to content

Commit

Permalink
fix: crash when selecting in protected chats
Browse files Browse the repository at this point in the history
  • Loading branch information
luvletter2333 committed Oct 5, 2023
1 parent d00e4ef commit bfa8ea9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -14653,8 +14653,10 @@ private void addToSelectedMessages(MessageObject messageObject, boolean outside,
boolean noforwards = getMessagesController().isChatNoForwards(currentChat) || hasSelectedNoforwardsMessage();
boolean canForward = chatMode != MODE_SCHEDULED && cantForwardMessagesCount == 0 && !noforwards;

forwardNoQuoteItem.setVisibility(canForward);
saveMessageItem.setVisibility(canForward);
if (forwardNoQuoteItem != null)
forwardNoQuoteItem.setVisibility(canForward);
if (saveMessageItem != null)
saveMessageItem.setVisibility(canForward);

if (NekoConfig.showBottomActionsWhenSelecting.Bool())
createBottomMessagesActionButtons();
Expand Down

0 comments on commit bfa8ea9

Please sign in to comment.