remove bot-tonconnect, fix auth last_use
This commit is contained in:
1 parent
c4c373809a
commit
e927ea2b6d
4 files changed
+10
-9
No files matched your search
@@ -15,7 +15,7 @@ main_router = Router()
|
||||
async def send_home_menu(chat_wrap, user, wallet_connection, **kwargs):
|
||||
return await tg_process_template(
|
||||
chat_wrap, user.translated('home_menu').format(
|
||||
wallet_address=Address(wallet_connection.wallet_address).to_string(1, 1, 1),
|
||||
wallet_address=Address(wallet_connection.wallet_address).to_string(1, 1, 1) if wallet_connection else user.translated('p_walletNotConnected'),
|
||||
name=user.front_format(plain_text=True),
|
||||
), keyboard=get_inline_keyboard([
|
||||
[{
|
||||
@@ -25,7 +25,7 @@ async def send_home_menu(chat_wrap, user, wallet_connection, **kwargs):
|
||||
[{
|
||||
'text': user.translated('disconnectWallet_button'),
|
||||
'callback_data': 'disconnectWallet'
|
||||
}]
|
||||
}] if wallet_connection else []
|
||||
]), **kwargs
|
||||
)
|
||||
|
||||
@@ -70,8 +70,8 @@ async def t_home_menu(__msg, **extra):
|
||||
WalletConnection.invalidated == False
|
||||
).first()
|
||||
|
||||
if not wallet_connection:
|
||||
return await send_connect_wallets_list(db_session, chat_wrap, user, message_id=message_id)
|
||||
# if not wallet_connection:
|
||||
# return await send_connect_wallets_list(db_session, chat_wrap, user, message_id=message_id)
|
||||
|
||||
args = []
|
||||
if isinstance(__msg, types.Message):
|
||||
|
||||
Reference in new issue
Block a user