mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Fix: When returning to chat after blocking it, hide request buttons (#2023)
Steps to reproduce the bug: - Go to a contact request - Go to the profile - Block the contact - Press back Expected behavior: Only the compose panel is shown, not the request buttons. Actual behavior: Both the panel and the request buttons are shown because the panel visibility is updated, but not the request button's. I fixed this by always calling `initializeContactRequest()` after `setComposePanelVisibility()`.
This commit is contained in:
@@ -272,8 +272,6 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||
} else if (isSharing(this)) {
|
||||
handleSharing();
|
||||
}
|
||||
|
||||
initializeContactRequest();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -300,7 +298,6 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||
initializeDraft();
|
||||
}
|
||||
});
|
||||
initializeContactRequest();
|
||||
|
||||
if (fragment != null) {
|
||||
fragment.onNewIntent();
|
||||
@@ -968,6 +965,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||
}
|
||||
|
||||
setComposePanelVisibility();
|
||||
initializeContactRequest();
|
||||
}
|
||||
|
||||
private void setComposePanelVisibility() {
|
||||
@@ -1552,9 +1550,6 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||
titleView.setTitle(glideRequests, dcChat);
|
||||
initializeSecurity(isSecureText, isDefaultSms);
|
||||
setComposePanelVisibility();
|
||||
}
|
||||
|
||||
if (eventId == DcContext.DC_EVENT_CHAT_MODIFIED && event.getData1Int() == chatId) {
|
||||
initializeContactRequest();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user