mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-10-15 14:08:05 +00:00
Move some calls from App namespace.
This commit is contained in:
@@ -9,6 +9,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
|
||||
#include "history/history.h"
|
||||
#include "data/data_channel.h"
|
||||
#include "data/data_session.h"
|
||||
|
||||
namespace Data {
|
||||
|
||||
@@ -29,7 +30,7 @@ void ChannelAdminChanges::feed(UserId userId, bool isAdmin) {
|
||||
|
||||
ChannelAdminChanges::~ChannelAdminChanges() {
|
||||
if (!_changes.empty()) {
|
||||
if (auto history = App::historyLoaded(_channel)) {
|
||||
if (const auto history = _channel->owner().historyLoaded(_channel)) {
|
||||
history->applyGroupAdminChanges(_changes);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user