| 2515 | } |
| 2516 | |
| 2517 | void Session::setChatPinned( |
| 2518 | Dialogs::Key key, |
| 2519 | FilterId filterId, |
| 2520 | bool pinned) { |
| 2521 | Expects(key.entry()->folderKnown()); |
| 2522 | |
| 2523 | const auto list = (filterId |
| 2524 | ? chatsFilters().chatsList(filterId) |
| 2525 | : chatsListFor(key.entry()))->pinned(); |
| 2526 | list->setPinned(key, pinned); |
| 2527 | notifyPinnedDialogsOrderUpdated(); |
| 2528 | } |
| 2529 | |
| 2530 | void Session::setPinnedFromEntryList(Dialogs::Key key, bool pinned) { |
| 2531 | Expects(key.entry()->folderKnown()); |
no test coverage detected