2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45: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

@@ -21,6 +21,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_changes.h"
#include "data/data_chat_filters.h"
#include "data/data_scheduled_messages.h"
#include "data/data_send_action.h"
#include "data/data_folder.h"
#include "data/data_photo.h"
#include "data/data_channel.h"
@@ -1088,7 +1089,7 @@ void History::newItemAdded(not_null<HistoryItem*> item) {
if (const auto from = item->from() ? item->from()->asUser() : nullptr) {
if (from == item->author()) {
_sendActionPainter.clear(from);
owner().repliesSendActionPaintersClear(this, from);
owner().sendActionManager().repliesPaintersClear(this, from);
}
from->madeAction(item->date());
}