mirror of
https://github.com/paul-nameless/tg
synced 2024-11-22 03:43:19 +00:00
Merge branch 'log' into fix-notify
This commit is contained in:
commit
9d17e8387a
2 changed files with 3 additions and 3 deletions
|
@ -1,10 +1,10 @@
|
|||
import curses
|
||||
import logging
|
||||
import os
|
||||
import queue
|
||||
import threading
|
||||
from datetime import datetime
|
||||
from functools import partial
|
||||
from queue import Queue
|
||||
from tempfile import NamedTemporaryFile
|
||||
from typing import Any, Callable, Dict, Optional
|
||||
|
||||
|
@ -46,7 +46,7 @@ class Controller:
|
|||
def __init__(self, model: Model, view: View, tg: Tdlib) -> None:
|
||||
self.model = model
|
||||
self.view = view
|
||||
self.queue = queue.Queue()
|
||||
self.queue: Queue = Queue()
|
||||
self.is_running = True
|
||||
self.tg = tg
|
||||
self.chat_size = 0.5
|
||||
|
|
|
@ -169,7 +169,7 @@ def update_chat_last_msg(controller: Controller, update: Dict[str, Any]):
|
|||
|
||||
current_chat_id = controller.model.current_chat_id
|
||||
if controller.model.chats.update_chat(
|
||||
chat_id, last_message=message, order=order
|
||||
chat_id, last_message=last_message, order=order
|
||||
):
|
||||
controller._refresh_current_chat(current_chat_id)
|
||||
|
||||
|
|
Loading…
Reference in a new issue