Compare commits

..

2 Commits

Author SHA1 Message Date
7b50be5ae1 Merge pull request 'Fix undefined variable in p2p_chat.py show_conversations handler' (#12) from v2_functions into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #12
2026-03-07 01:53:33 +00:00
6089c90d22 Fix undefined variable in p2p_chat.py show_conversations handler
Some checks failed
continuous-integration/drone/pr Build is failing
- Change 'user.id' to 'sender.id' in line 205
- Error: NameError: name 'user' is not defined
- Issue occurred when calling /chat -> Мои диалоги callback
2026-03-07 10:53:07 +09:00

View File

@@ -204,7 +204,7 @@ async def show_conversations(callback: CallbackQuery):
last_name=callback.from_user.last_name
)
conversations = await P2PMessageService.get_recent_conversations(session, user.id, limit=10)
conversations = await P2PMessageService.get_recent_conversations(session, sender.id, limit=10)
if not conversations:
await callback.message.edit_text(