This commit is contained in:
Mikhail Kilin committed 2026-01-21 02:27:08 +03:00
1 parent 9912ac11bd
commit 32ab1df1fa
8 files changed
+291 -79

No files matched your search

+2 -2
View File
@@ -37,7 +37,7 @@ pub async fn handle(app: &mut App, key: KeyEvent) {
if let Some(chat_id) = app.get_selected_chat_id() {
app.status_message = Some("Загрузка сообщений...".to_string());
app.message_scroll_offset = 0;
match timeout(Duration::from_secs(5), app.td_client.get_chat_history(chat_id, 50)).await {
match timeout(Duration::from_secs(10), app.td_client.get_chat_history(chat_id, 100)).await {
Ok(Ok(messages)) => {
app.current_messages = messages;
app.status_message = None;
@@ -160,7 +160,7 @@ pub async fn handle(app: &mut App, key: KeyEvent) {
if let Some(chat_id) = app.get_selected_chat_id() {
app.status_message = Some("Загрузка сообщений...".to_string());
app.message_scroll_offset = 0;
match timeout(Duration::from_secs(5), app.td_client.get_chat_history(chat_id, 50)).await {
match timeout(Duration::from_secs(10), app.td_client.get_chat_history(chat_id, 100)).await {
Ok(Ok(messages)) => {
app.current_messages = messages;
app.status_message = None;