Skip to content

Commit

Permalink
fix: quoteForward after noQuoteForward
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed May 17, 2024
1 parent cb6491b commit d43d2b6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,10 @@ public void attach(MessagePreviewView previewView) {
this.previewView = previewView;
}

public void setHideForwardSendersName(boolean hideForwardSendersName) {
this.hideForwardSendersName = hideForwardSendersName;
}

public void checkEdits(ArrayList<MessageObject> replaceMessageObjects) {
boolean replaced = false;
if (forwardMessages != null) {
Expand Down
9 changes: 9 additions & 0 deletions TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -30639,6 +30639,9 @@ private void processSelectedOption(int option) {
}
case OPTION_FORWARD: {
noForwardQuote = false; //fuck
if (messagePreviewParams != null) {
messagePreviewParams.setHideForwardSendersName(noForwardQuote);
}
forwardingMessage = selectedObject;
forwardingMessageGroup = selectedObjectGroup;
Bundle args = new Bundle();
Expand Down Expand Up @@ -39040,6 +39043,9 @@ private void nkbtn_onclick_actionbar(int id) {
// should hide shit action bar after done
if (id == nkbtn_forward_noquote) {
noForwardQuote = id == nkbtn_forward_noquote;
if (messagePreviewParams != null) {
messagePreviewParams.setHideForwardSendersName(noForwardQuote);
}
openForward(true);
} else if (id == nkactionbarbtn_reply) {
MessageObject messageObject = null;
Expand Down Expand Up @@ -39265,6 +39271,9 @@ private void nkbtn_onclick(int id) {
}
case nkbtn_forward_noquote: {
noForwardQuote = true;
if (messagePreviewParams != null) {
messagePreviewParams.setHideForwardSendersName(noForwardQuote);
}
forwardingMessage = selectedObject;
forwardingMessageGroup = selectedObjectGroup;
Bundle args = new Bundle();
Expand Down

0 comments on commit d43d2b6

Please sign in to comment.