WebXDC is launched from chat, so return there on close

Stephen Paul Weber created

Change summary

src/main/java/eu/siacs/conversations/entities/Conversation.java | 1 +
1 file changed, 1 insertion(+)

Detailed changes

src/main/java/eu/siacs/conversations/entities/Conversation.java 🔗

@@ -1474,6 +1474,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
         public void removeSession(ConversationPage session) {
             sessions.remove(session);
             notifyDataSetChanged();
+            if (session instanceof WebxdcPage) mPager.setCurrentItem(0);
         }
 
         public boolean switchToSession(final String node) {