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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user