refactor: use system timezone and harden client APIs

This commit is contained in:
Mikhail Kilin
2026-05-17 13:14:59 +03:00
parent 887892f809
commit e09b83be69
50 changed files with 172 additions and 343 deletions

View File

@@ -270,8 +270,8 @@ impl TdClientTrait for TdClient {
self.set_typing_status(status)
}
fn pending_view_messages_mut(&mut self) -> &mut Vec<(ChatId, Vec<MessageId>)> {
self.pending_view_messages_mut()
fn enqueue_pending_view_messages(&mut self, chat_id: ChatId, message_ids: Vec<MessageId>) {
self.enqueue_pending_view_messages(chat_id, message_ids);
}
fn pending_user_ids_mut(&mut self) -> &mut Vec<UserId> {
@@ -287,6 +287,10 @@ impl TdClientTrait for TdClient {
}
// ============ Notification methods ============
fn configure_notifications(&mut self, config: &crate::config::NotificationsConfig) {
self.configure_notifications(config);
}
fn sync_notification_muted_chats(&mut self) {
self.notification_manager
.sync_muted_chats(&self.chat_manager.chats);