Show show only this thread when thread feature activated

This commit is contained in:
Arne 2024-04-04 20:17:17 +02:00
parent b1ebcbed5c
commit 41b8e5b1cd

View file

@ -2227,7 +2227,9 @@ public class ConversationFragment extends XmppFragment
MenuItem showLog = menu.findItem(R.id.show_edit_log);
MenuItem showErrorMessage = menu.findItem(R.id.show_error_message);
MenuItem saveFile = menu.findItem(R.id.save_file);
onlyThisThread.setVisible(!conversation.getLockThread() && m.getThread() != null);
if (activity != null && activity.xmppConnectionService != null && activity.xmppConnectionService.getBooleanPreference("show_thread_feature", R.bool.show_thread_feature)) {
onlyThisThread.setVisible(!conversation.getLockThread() && m.getThread() != null);
}
final boolean unInitiatedButKnownSize = MessageUtils.unInitiatedButKnownSize(m);
final boolean showError = m.getStatus() == Message.STATUS_SEND_FAILED && m.getErrorMessage() != null && !Message.ERROR_MESSAGE_CANCELLED.equals(m.getErrorMessage());
final Conversational conversational = m.getConversation();