mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 07:05:13 +00:00
Fix assertion violation when no feed.
This commit is contained in:
@@ -670,8 +670,8 @@ void ToggleChannelGrouping(not_null<ChannelData*> channel, bool group) {
|
|||||||
: lng_feed_channel_removed));
|
: lng_feed_channel_removed));
|
||||||
};
|
};
|
||||||
if (group) {
|
if (group) {
|
||||||
const auto feed = Auth().data().feedLoaded(Data::Feed::kId);
|
const auto feed = Auth().data().feed(Data::Feed::kId);
|
||||||
if (!feed || feed->channels().size() < 2) {
|
if (feed->channels().size() < 2) {
|
||||||
Info::FeedProfile::EditController::Start(feed, channel);
|
Info::FeedProfile::EditController::Start(feed, channel);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user