From a6740aae678fd87fa7dd640fb1c75d9ec57cd211 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Mon, 19 Sep 2022 13:01:57 -0500 Subject: [PATCH] Do not hide the command UI during an active session Can happen if we re-detect that the contact does not support command UI (or that we don't know it does due to not being in roster / getting removed from roster) but the session was opened using an in-message button or similar. --- src/main/java/eu/siacs/conversations/entities/Conversation.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/eu/siacs/conversations/entities/Conversation.java b/src/main/java/eu/siacs/conversations/entities/Conversation.java index 2d6046065ed75fc6ea10a4a12fc3fc90c76066d8..ece1abde351d86fa4e409d8df980367434494484 100644 --- a/src/main/java/eu/siacs/conversations/entities/Conversation.java +++ b/src/main/java/eu/siacs/conversations/entities/Conversation.java @@ -1253,6 +1253,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl } public void hide() { + if (!sessions.isEmpty()) return; // Do not hide during active session if (mPager != null) mPager.setCurrentItem(0); if (mTabs != null) mTabs.setVisibility(View.GONE); sessions = null;