aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/StoryInteractionInfo.cpp
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2023-07-03 20:03:26 +0300
committerlevlam <levlam@telegram.org>2023-07-03 20:03:26 +0300
commit9345dc279955b0ac519f70fe12eda7b7acface0f (patch)
treef780c3a1a5f147470142a46635a3daf45670fb21 /td/telegram/StoryInteractionInfo.cpp
parentfac13ff3a3dd37cf3b1471e7727912019c38c0f8 (diff)
Add add_story_dependencies.
Diffstat (limited to 'td/telegram/StoryInteractionInfo.cpp')
-rw-r--r--td/telegram/StoryInteractionInfo.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/td/telegram/StoryInteractionInfo.cpp b/td/telegram/StoryInteractionInfo.cpp
index 1e58d6f4f..f08e9ab8d 100644
--- a/td/telegram/StoryInteractionInfo.cpp
+++ b/td/telegram/StoryInteractionInfo.cpp
@@ -7,6 +7,7 @@
#include "td/telegram/StoryInteractionInfo.h"
#include "td/telegram/ContactsManager.h"
+#include "td/telegram/Dependencies.h"
#include "td/telegram/Td.h"
#include "td/utils/algorithm.h"
@@ -37,6 +38,12 @@ StoryInteractionInfo::StoryInteractionInfo(Td *td, telegram_api::object_ptr<tele
}
}
+void StoryInteractionInfo::add_dependencies(Dependencies &dependencies) const {
+ for (auto user_id : recent_viewer_user_ids_) {
+ dependencies.add(user_id);
+ }
+}
+
void StoryInteractionInfo::set_recent_viewer_user_ids(vector<UserId> &&user_ids) {
if (user_ids.size() > MAX_RECENT_VIEWERS) {
user_ids.resize(MAX_RECENT_VIEWERS);