MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / edit

Method edit

Telegram/SourceFiles/api/api_todo_lists.cpp:140–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140void 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
157void TodoLists::add(
158 not_null<HistoryItem*> item,

Callers

nothing calls this directly

Calls 1

EditTodoListFunction · 0.85

Tested by

no test coverage detected