Various fixes.
This commit is contained in:
parent
6e44c27db0
commit
046ed45152
@ -6657,7 +6657,7 @@ updateQuickReplyShortcuts shortcut_ids:vector<int32> = Update;
|
||||
|
||||
//@description The list of quick reply shortcut messages has changed
|
||||
//@shortcut_id The identifier of the shortcut
|
||||
//@messages The new list of quick reply messages for the shortcut in order from the first to the last sent
|
||||
//@messages The new list of quick reply messages for the shortcut in order from the first to the last sent
|
||||
updateQuickReplyShortcutMessages shortcut_id:int32 messages:vector<quickReplyMessage> = Update;
|
||||
|
||||
//@description Basic information about a topic in a forum chat was changed @chat_id Chat identifier @info New information about the topic
|
||||
|
@ -14,8 +14,6 @@
|
||||
|
||||
namespace td {
|
||||
|
||||
class Td;
|
||||
|
||||
class BusinessWorkHours {
|
||||
public:
|
||||
BusinessWorkHours() = default;
|
||||
|
@ -26646,7 +26646,7 @@ Result<td_api::object_ptr<td_api::messages>> MessagesManager::send_quick_reply_s
|
||||
TRY_RESULT(message_contents, td_->quick_reply_manager_->get_quick_reply_message_contents(dialog_id, shortcut_id));
|
||||
|
||||
if (message_contents.empty()) {
|
||||
return td_api::object_ptr<td_api::messages>();
|
||||
return td_api::make_object<td_api::messages>();
|
||||
}
|
||||
|
||||
std::unordered_map<int64, std::pair<int64, int32>, Hash<int64>> new_media_album_ids;
|
||||
|
@ -479,7 +479,7 @@ Status QuickReplyManager::check_shortcut_name(CSlice name) {
|
||||
length++;
|
||||
}
|
||||
if (length == 0) {
|
||||
return Status::Error("Name can't be empty");
|
||||
return Status::Error("Name must be non-empty");
|
||||
}
|
||||
if (length > 32) {
|
||||
return Status::Error("Name is too long");
|
||||
@ -1305,9 +1305,7 @@ void QuickReplyManager::on_reload_quick_reply_messages(
|
||||
if (s == nullptr) {
|
||||
return fail_promises(promises, Status::Error(400, "Shortcut not found"));
|
||||
}
|
||||
for (auto &promise : promises) {
|
||||
promise.set_value(Unit());
|
||||
}
|
||||
set_promises(promises);
|
||||
}
|
||||
|
||||
int64 QuickReplyManager::get_quick_reply_messages_hash(const Shortcut *s) {
|
||||
|
@ -9618,7 +9618,7 @@ td_api::object_ptr<td_api::Object> Td::do_static_request(const td_api::checkQuic
|
||||
if (status.is_ok()) {
|
||||
return td_api::make_object<td_api::ok>();
|
||||
}
|
||||
return make_error(200, status.error().message());
|
||||
return make_error(200, status.message());
|
||||
}
|
||||
|
||||
td_api::object_ptr<td_api::Object> Td::do_static_request(const td_api::getCountryFlagEmoji &request) {
|
||||
|
@ -946,7 +946,7 @@ class CliClient final : public Actor {
|
||||
}
|
||||
|
||||
vector<int32> as_shortcut_ids(Slice shortcut_ids) const {
|
||||
return transform(autosplit(shortcut_ids), [](Slice str) { return as_shortcut_id(str); });
|
||||
return transform(autosplit(shortcut_ids), as_shortcut_id);
|
||||
}
|
||||
|
||||
td_api::object_ptr<td_api::InputMessageReplyTo> get_input_message_reply_to() const {
|
||||
|
Loading…
Reference in New Issue
Block a user