Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions src/ccbot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1063,17 +1063,6 @@ async def _create_and_bind_window(
user.id, pending_thread_id, created_wid, window_name=created_wname
)

# Rename the topic to match the window name
resolved_chat = session_manager.resolve_chat_id(user.id, pending_thread_id)
try:
await context.bot.edit_forum_topic(
chat_id=resolved_chat,
message_thread_id=pending_thread_id,
name=created_wname,
)
except Exception as e:
logger.debug(f"Failed to rename topic: {e}")

status = "Resumed" if resume_session_id else "Created"
await safe_edit(
query,
Expand Down Expand Up @@ -1461,17 +1450,6 @@ async def callback_handler(update: Update, context: ContextTypes.DEFAULT_TYPE) -
user.id, thread_id, selected_wid, window_name=display
)

# Rename the topic to match the window name
resolved_chat = session_manager.resolve_chat_id(user.id, thread_id)
try:
await context.bot.edit_forum_topic(
chat_id=resolved_chat,
message_thread_id=thread_id,
name=display,
)
except Exception as e:
logger.debug(f"Failed to rename topic: {e}")

await safe_edit(
query,
f"✅ Bound to window `{display}`",
Expand Down
Loading