Minor improvements.

This commit is contained in:
levlam 2023-07-13 19:32:54 +03:00
parent aa0b217a18
commit c2999d8557
8 changed files with 11 additions and 21 deletions

View File

@ -4960,7 +4960,7 @@ stories total_count:int32 stories:vector<story> = Stories;
//@description Contains basic information about a story
//@story_id Unique story identifier among stories of the given sender
//@date Point in time (Unix timestamp) when the story was published
//@is_for_close_friends True, if the story is available only for close friends
//@is_for_close_friends True, if the story is available only to close friends
storyInfo story_id:int32 date:int32 is_for_close_friends:Bool = StoryInfo;
//@description Describes active stories posted by a chat

View File

@ -13,7 +13,6 @@
#include "td/telegram/ChannelType.h"
#include "td/telegram/ChatId.h"
#include "td/telegram/Contact.h"
#include "td/telegram/CustomEmojiId.h"
#include "td/telegram/DialogAdministrator.h"
#include "td/telegram/DialogId.h"
#include "td/telegram/DialogInviteLink.h"

View File

@ -18,8 +18,6 @@
#include "td/utils/logging.h"
#include "td/utils/Status.h"
#include <limits>
namespace td {
struct EmojiStatuses {

View File

@ -23,6 +23,7 @@
#include "td/utils/common.h"
#include "td/utils/logging.h"
#include "td/utils/tl_helpers.h"
#include <cmath>

View File

@ -6,8 +6,7 @@
//
#include "td/telegram/StoryDb.h"
#include "td/telegram/logevent/LogEvent.h"
#include "td/telegram/UserId.h"
#include "td/telegram/StoryId.h"
#include "td/telegram/Version.h"
#include "td/db/SqliteConnectionSafe.h"
@ -20,20 +19,9 @@
#include "td/utils/format.h"
#include "td/utils/logging.h"
#include "td/utils/ScopeGuard.h"
#include "td/utils/Slice.h"
#include "td/utils/SliceBuilder.h"
#include "td/utils/StackAllocator.h"
#include "td/utils/StringBuilder.h"
#include "td/utils/Time.h"
#include "td/utils/tl_helpers.h"
#include "td/utils/unicode.h"
#include "td/utils/utf8.h"
#include <algorithm>
#include <array>
#include <iterator>
#include <limits>
#include <tuple>
#include <utility>
namespace td {

View File

@ -17,7 +17,6 @@
#include "td/utils/Status.h"
#include <memory>
#include <utility>
namespace td {

View File

@ -18,10 +18,12 @@
#include "td/telegram/logevent/LogEventHelper.h"
#include "td/telegram/MessageEntity.h"
#include "td/telegram/MessagesManager.h"
#include "td/telegram/NotificationId.h"
#include "td/telegram/NotificationManager.h"
#include "td/telegram/OptionManager.h"
#include "td/telegram/ReportReason.h"
#include "td/telegram/StoryContent.h"
#include "td/telegram/StoryContentType.h"
#include "td/telegram/StoryDb.h"
#include "td/telegram/StoryInteractionInfo.hpp"
#include "td/telegram/Td.h"
@ -36,6 +38,7 @@
#include "td/utils/algorithm.h"
#include "td/utils/buffer.h"
#include "td/utils/format.h"
#include "td/utils/logging.h"
#include "td/utils/misc.h"
#include "td/utils/Random.h"
@ -142,7 +145,7 @@ class GetAllReadUserStoriesQuery final : public Td::ResultHandler {
}
void on_error(Status status) final {
LOG(INFO) << "Failed to get all read user stories: " << status;
LOG(INFO) << "Receive error for GetAllReadUserStoriesQuery: " << status;
}
};
@ -1123,7 +1126,7 @@ StoryManager::Story *StoryManager::on_get_story_from_database(StoryFullId story_
register_story_global_id(story_full_id, result);
CHECK(!is_inaccessible_story(story_full_id));
CHECK(being_edited_stories_.find(story_full_id) == being_edited_stories_.end());
CHECK(being_edited_stories_.count(story_full_id) == 0);
on_story_changed(story_full_id, result, true, false, true);
@ -1370,7 +1373,7 @@ void StoryManager::toggle_dialog_stories_hidden(DialogId dialog_id, StoryListId
return promise.set_value(Unit());
}
if (!story_list_id.is_valid()) {
return promise.set_error(Status::Error(400, "Story list must not be empty"));
return promise.set_error(Status::Error(400, "Story list must be non-empty"));
}
td_->create_handler<ToggleStoriesHiddenQuery>(std::move(promise))

View File

@ -19,12 +19,14 @@
#include "td/telegram/StoryListId.h"
#include "td/telegram/td_api.h"
#include "td/telegram/telegram_api.h"
#include "td/telegram/UserId.h"
#include "td/telegram/UserPrivacySettingRule.h"
#include "td/actor/actor.h"
#include "td/actor/MultiTimeout.h"
#include "td/actor/Timeout.h"
#include "td/utils/buffer.h"
#include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/FlatHashSet.h"