| 138 | } |
| 139 | |
| 140 | void TodoLists::edit( |
| 141 | not_null<HistoryItem*> item, |
| 142 | const TodoListData &data, |
| 143 | SendOptions options, |
| 144 | Fn<void()> done, |
| 145 | Fn<void(QString)> fail) { |
| 146 | EditTodoList(item, data, options, [=](mtpRequestId) { |
| 147 | if (const auto onstack = done) { |
| 148 | onstack(); |
| 149 | } |
| 150 | }, [=](const QString &error, mtpRequestId) { |
| 151 | if (const auto onstack = fail) { |
| 152 | onstack(error); |
| 153 | } |
| 154 | }); |
| 155 | } |
| 156 | |
| 157 | void TodoLists::add( |
| 158 | not_null<HistoryItem*> item, |
nothing calls this directly
no test coverage detected