| 363 | } |
| 364 | |
| 365 | void Folder::applyPinnedUpdate(const MTPDupdateDialogPinned &data) { |
| 366 | const auto folderId = data.vfolder_id().value_or_empty(); |
| 367 | if (folderId != 0) { |
| 368 | LOG(("API Error: Nested folders detected.")); |
| 369 | } |
| 370 | owner().setChatPinned(this, FilterId(), data.is_pinned()); |
| 371 | } |
| 372 | |
| 373 | int Folder::fixedOnTopIndex() const { |
| 374 | return kArchiveFixOnTopIndex; |
nothing calls this directly
no test coverage detected