| 658 | } |
| 659 | |
| 660 | void EditTodoList( |
| 661 | not_null<HistoryItem*> item, |
| 662 | const TodoListData &data, |
| 663 | SendOptions options, |
| 664 | Fn<void(mtpRequestId requestId)> done, |
| 665 | Fn<void(const QString &error, mtpRequestId requestId)> fail) { |
| 666 | const auto callback = [=](Fn<void()> applyUpdates, mtpRequestId id) { |
| 667 | applyUpdates(); |
| 668 | done(id); |
| 669 | }; |
| 670 | EditMessage( |
| 671 | item, |
| 672 | options, |
| 673 | callback, |
| 674 | fail, |
| 675 | MTP_inputMediaTodo(TodoListDataToMTP(&data))); |
| 676 | } |
| 677 | |
| 678 | } // namespace Api |
no test coverage detected