diff options
| author | levlam <levlam@telegram.org> | 2024-04-02 03:52:34 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2024-04-02 03:52:34 +0300 |
| commit | 03a624903e1d5a116d4342265f775139119e5fad (patch) | |
| tree | 5c1946338a8879430883290ad81bcf83099afcd2 /td/telegram/DialogActionBar.cpp | |
| parent | 6010475d26ca023f8e3d96033654ea45d1d3f697 (diff) | |
Move relevant functions to UserManager.
Diffstat (limited to 'td/telegram/DialogActionBar.cpp')
| -rw-r--r-- | td/telegram/DialogActionBar.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/td/telegram/DialogActionBar.cpp b/td/telegram/DialogActionBar.cpp index f2b746f54..8f3cef1ed 100644 --- a/td/telegram/DialogActionBar.cpp +++ b/td/telegram/DialogActionBar.cpp @@ -8,6 +8,7 @@ #include "td/telegram/ContactsManager.h" #include "td/telegram/Td.h" +#include "td/telegram/UserManager.h" #include "td/utils/logging.h" @@ -113,9 +114,9 @@ void DialogActionBar::fix(Td *td, DialogId dialog_id, bool is_dialog_blocked, Fo } if (dialog_type == DialogType::User) { auto user_id = dialog_id.get_user_id(); - bool is_me = user_id == td->contacts_manager_->get_my_id(); - bool is_deleted = td->contacts_manager_->is_user_deleted(user_id); - bool is_contact = td->contacts_manager_->is_user_contact(user_id); + bool is_me = user_id == td->user_manager_->get_my_id(); + bool is_deleted = td->user_manager_->is_user_deleted(user_id); + bool is_contact = td->user_manager_->is_user_contact(user_id); if (is_me || is_dialog_blocked) { can_report_spam_ = false; can_unarchive_ = false; |
