Fix query promise.

This commit is contained in:
levlam 2024-03-06 16:52:54 +03:00
parent bc1a8d2bc2
commit 2d43bdf03c

View File

@ -926,6 +926,8 @@ void QuickReplyManager::set_quick_reply_shortcut_name(QuickReplyShortcutId short
if (result.is_ok()) { if (result.is_ok()) {
send_closure(actor_id, &QuickReplyManager::on_set_quick_reply_shortcut_name, shortcut_id, name, send_closure(actor_id, &QuickReplyManager::on_set_quick_reply_shortcut_name, shortcut_id, name,
std::move(promise)); std::move(promise));
} else {
promise.set_error(result.move_as_error());
} }
}); });
set_quick_reply_shortcut_name_on_server(shortcut_id, name, std::move(query_promise)); set_quick_reply_shortcut_name_on_server(shortcut_id, name, std::move(query_promise));