Skip to content

Commit

Permalink
Preserve navigation stack when opening similar channel
Browse files Browse the repository at this point in the history
  • Loading branch information
vkryl committed Feb 26, 2025
1 parent d304020 commit 9cb7c88
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.thunderdog.challegram.telegram.ChatListener;
import org.thunderdog.challegram.telegram.Tdlib;
import org.thunderdog.challegram.telegram.TdlibCache;
import org.thunderdog.challegram.telegram.TdlibUi;
import org.thunderdog.challegram.tool.Screen;
import org.thunderdog.challegram.v.MediaRecyclerView;
import org.thunderdog.challegram.widget.CheckBoxView;
Expand Down Expand Up @@ -200,7 +201,7 @@ public void onClick (View view) {
break;
case Mode.SIMILAR_CHANNELS:
tdlib.send(new TdApi.OpenChatSimilarChat(getChatId(), chatId), tdlib.typedOkHandler());
tdlib.ui().openChat(this, chatId, null);
tdlib.ui().openChat(this, chatId, new TdlibUi.ChatOpenParameters().keepStack());
break;
default:
throw new IllegalStateException();
Expand Down

0 comments on commit 9cb7c88

Please sign in to comment.