mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 02:01:40 -05:00
Fix assertion violation when no feed.
This commit is contained in:
parent
d5569487a4
commit
1ae22c8606
1 changed files with 2 additions and 2 deletions
|
@ -670,8 +670,8 @@ void ToggleChannelGrouping(not_null<ChannelData*> channel, bool group) {
|
|||
: lng_feed_channel_removed));
|
||||
};
|
||||
if (group) {
|
||||
const auto feed = Auth().data().feedLoaded(Data::Feed::kId);
|
||||
if (!feed || feed->channels().size() < 2) {
|
||||
const auto feed = Auth().data().feed(Data::Feed::kId);
|
||||
if (feed->channels().size() < 2) {
|
||||
Info::FeedProfile::EditController::Start(feed, channel);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue