2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Moved code of data send actions from Data::Session to separated file.

This commit is contained in:
23rd
2021-08-30 22:35:16 +03:00
parent f7abd85761
commit dc8eb79295
11 changed files with 265 additions and 199 deletions

View File

@@ -28,6 +28,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_histories.h"
#include "data/data_folder.h"
#include "data/data_scheduled_messages.h"
#include "data/data_send_action.h"
#include "lang/lang_cloud_manager.h"
#include "history/history.h"
#include "history/history_item.h"
@@ -1017,7 +1018,7 @@ void Updates::handleSendActionUpdate(
const auto when = requestingDifference()
? 0
: base::unixtime::now();
session().data().registerSendAction(
session().data().sendActionManager().registerFor(
history,
rootId,
from->asUser(),