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

Add group/ungroup action in channel peer menu.

This commit is contained in:
John Preston
2018-01-23 19:51:12 +03:00
parent ced0c4d8f0
commit 65df137610
24 changed files with 347 additions and 118 deletions

View File

@@ -862,10 +862,11 @@ void ChannelData::clearFeed() {
void ChannelData::setFeedPointer(Data::Feed *feed) {
if (_feed != feed) {
if (_feed) {
_feed->unregisterOne(this);
}
const auto was = _feed;
_feed = feed;
if (was) {
was->unregisterOne(this);
}
if (_feed) {
_feed->registerOne(this);
}