If onboarding and only 1 conversation, that's where we want to be

Stephen Paul Weber created

Change summary

src/main/java/eu/siacs/conversations/ui/ConversationsOverviewFragment.java | 8 
1 file changed, 8 insertions(+)

Detailed changes

src/main/java/eu/siacs/conversations/ui/ConversationsOverviewFragment.java 🔗

@@ -492,6 +492,14 @@ public class ConversationsOverviewFragment extends XmppFragment {
 
 		if (activity.xmppConnectionService != null && activity.xmppConnectionService.isOnboarding()) {
 			binding.fab.setVisibility(View.GONE);
+
+			if (this.conversations.size() == 1) {
+				if (activity instanceof OnConversationSelected) {
+					((OnConversationSelected) activity).onConversationSelected(this.conversations.get(0));
+				} else {
+					Log.w(ConversationsOverviewFragment.class.getCanonicalName(), "Activity does not implement OnConversationSelected");
+				}
+			}
 		} else {
 			binding.fab.setVisibility(View.VISIBLE);
 		}