Work fork of an Android Jabber client for bridge users git.sr.ht/~singpolyma/cheogram-android
sopranica sgx xmpp jabber
0

Configure Feed

Select the types of activity you want to include in your feed.

fix NPE from reading UI thread data

`onTextDeleted` is called from a single-threaded executor. the zero-arg
overload of `storeNextMessage` reads from the `EditMessage` component,
but `onTextDeleted` should obviously never read a non-null message, so
there's no reason to coordinate it with the UI thread.

authored by

Phillip Davis and committed by
Stephen Paul Weber
(Apr 20, 2026, 8:21 AM -0500) 4db03acf 7e40b83c

+7 -9
+7 -9
src/main/java/eu/siacs/conversations/ui/ConversationFragment.java
··· 4641 4641 && conversation.setOutgoingChatState(Config.DEFAULT_CHAT_STATE)) { 4642 4642 service.sendChatState(conversation); 4643 4643 } 4644 - if (storeNextMessage()) { 4645 - runOnUiThread( 4646 - () -> { 4647 - if (activity == null) { 4648 - return; 4649 - } 4644 + final boolean stored = storeNextMessage(null); 4645 + runOnUiThread( 4646 + () -> { 4647 + if (stored && activity != null) { 4650 4648 activity.onConversationsListItemUpdated(); 4651 - }); 4652 - } 4653 - runOnUiThread(this::updateSendButton); 4649 + } 4650 + updateSendButton(); 4651 + }); 4654 4652 } 4655 4653 4656 4654 @Override