Increase mobile chat font size
This commit is contained in:
@@ -662,9 +662,12 @@ export default function GamePage() {
|
||||
setIsInitialLoading(false);
|
||||
};
|
||||
|
||||
const handleDeleteSession = async (sessionId: string, sessionName: string) => {
|
||||
const handleDeleteSession = async (
|
||||
sessionId: string,
|
||||
sessionName: string,
|
||||
) => {
|
||||
if (!id) return;
|
||||
|
||||
|
||||
const confirmed = confirm(`Удалить сессию "${sessionName}"?`);
|
||||
if (!confirmed) return;
|
||||
|
||||
@@ -672,7 +675,7 @@ export default function GamePage() {
|
||||
if (success) {
|
||||
const newList = sessionsList.filter((s) => s.id !== sessionId);
|
||||
setSessionsList(newList);
|
||||
|
||||
|
||||
// Если удалили текущую сессию — переключаемся на первую оставшуюся
|
||||
if (sessionId === currentSessionId && newList.length > 0) {
|
||||
handleSwitchSession(newList[0].id);
|
||||
|
||||
Reference in New Issue
Block a user