tdesktop/Telegram/SourceFiles/data/data_channel_admins.h

28 lines
573 B
C
Raw Normal View History

2017-12-02 11:07:27 +00:00
/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
2017-12-02 11:07:27 +00:00
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
2017-12-02 11:07:27 +00:00
*/
#pragma once
namespace Data {
class ChannelAdminChanges {
public:
ChannelAdminChanges(not_null<ChannelData*> channel);
void feed(UserId userId, bool isAdmin);
~ChannelAdminChanges();
private:
not_null<ChannelData*> _channel;
base::flat_set<UserId> &_admins;
base::flat_map<UserId, bool> _changes;
};
} // namespace Data