Make get_dialog_pinned_order static.

GitOrigin-RevId: 40e4b29573044b9d5f4fbdf75610eef4eab73421
This commit is contained in:
levlam 2020-05-27 23:35:35 +03:00
parent 4ace9f4c02
commit 22f158ac1f
2 changed files with 2 additions and 2 deletions

View File

@ -12422,7 +12422,7 @@ int64 MessagesManager::get_dialog_pinned_order(DialogListId dialog_list_id, Dial
return get_dialog_pinned_order(get_dialog_list(dialog_list_id), dialog_id);
}
int64 MessagesManager::get_dialog_pinned_order(const DialogList *list, DialogId dialog_id) const {
int64 MessagesManager::get_dialog_pinned_order(const DialogList *list, DialogId dialog_id) {
if (list != nullptr && !list->pinned_dialogs_.empty()) {
auto it = list->pinned_dialog_id_orders_.find(dialog_id);
if (it != list->pinned_dialog_id_orders_.end()) {

View File

@ -1598,7 +1598,7 @@ class MessagesManager : public Actor {
int64 get_dialog_pinned_order(DialogListId dialog_list_id, DialogId dialog_id) const;
int64 get_dialog_pinned_order(const DialogList *list, DialogId dialog_id) const;
static int64 get_dialog_pinned_order(const DialogList *list, DialogId dialog_id);
void open_dialog(Dialog *d);