This commit is contained in:
Stephen Paul Weber 2024-03-27 15:11:36 +01:00 committed by Arne
parent f70c9e7549
commit e4f3b148b6

View file

@ -4744,9 +4744,8 @@ public class ConversationFragment extends XmppFragment
final boolean participating = conversation.getMode() == Conversational.MODE_SINGLE || conversation.getMucOptions().participating();
if (this.conversation.getStatus() != Conversation.STATUS_ARCHIVED &&
participating &&
this.conversation.setNextMessage(msg) &&
Objects.nonNull(activity.xmppConnectionService)) {
this.activity.xmppConnectionService.updateConversation(this.conversation);
this.conversation.setNextMessage(msg) && activity != null) {
activity.xmppConnectionService.updateConversation(this.conversation);
return true;
}
return false;