~singpolyma/cheogram-android

53ac579a91cb48ecf06864ae49af8841cc7c6a60 — Stephen Paul Weber 1 year, 2 months ago 6b0f371
Clear thread when unlocking, since auto follow is optional
1 files changed, 4 insertions(+), 0 deletions(-)

M src/main/java/eu/siacs/conversations/ui/ConversationFragment.java
M src/main/java/eu/siacs/conversations/ui/ConversationFragment.java => src/main/java/eu/siacs/conversations/ui/ConversationFragment.java +4 -0
@@ 1338,6 1338,7 @@ public class ConversationFragment extends XmppFragment

        binding.textSendButton.setOnClickListener(this.mSendButtonListener);
        binding.contextPreviewCancel.setOnClickListener((v) -> {
            setThread(null);
            conversation.setUserSelectedThread(false);
            setupReply(null);
        });


@@ 1379,6 1380,7 @@ public class ConversationFragment extends XmppFragment
            conversation.setLockThread(false);
            backPressedLeaveSingleThread.setEnabled(false);
            if (wasLocked) {
                setThread(null);
                conversation.setUserSelectedThread(false);
                refresh();
                updateThreadFromLastMessage();


@@ 1899,6 1901,7 @@ public class ConversationFragment extends XmppFragment
        conversation.setLockThread(false);
        backPressedLeaveSingleThread.setEnabled(false);
        if (wasLocked) {
            setThread(null);
            conversation.setUserSelectedThread(false);
            refresh();
            updateThreadFromLastMessage();


@@ 3440,6 3443,7 @@ public class ConversationFragment extends XmppFragment
    }

    protected void messageSent() {
        setThread(null);
        conversation.setUserSelectedThread(false);
        mSendingPgpMessage.set(false);
        this.binding.textinput.setText("");