some fixes

This commit is contained in:
levina 2022-02-12 18:44:51 +07:00 committed by GitHub
parent 6e8114ca78
commit b656910a10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ from driver.queues import (
clear_queue, clear_queue,
get_queue, get_queue,
pop_an_item, pop_an_item,
clear_trash, clean_trash,
) )
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup
@ -36,7 +36,6 @@ async def skip_current_song(chat_id):
chat_queue = get_queue(chat_id) chat_queue = get_queue(chat_id)
if "t.me" in chat_queue[0][2]: if "t.me" in chat_queue[0][2]:
clean_trash(chat_queue[0][1], chat_id) clean_trash(chat_queue[0][1], chat_id)
return
if len(chat_queue) == 1: if len(chat_queue) == 1:
await calls.leave_group_call(chat_id) await calls.leave_group_call(chat_id)
await remove_active_chat(chat_id) await remove_active_chat(chat_id)