Restored old behjaviour

This commit is contained in:
WolverinDEV 2020-01-27 13:05:16 +01:00
parent 8acd2396d3
commit 431e2c28f2

View File

@ -685,7 +685,6 @@ void ConnectedClient::sendChannelList(bool lock_channel_tree) {
*/
/*
std::deque<std::shared_ptr<ViewEntry>> entry_channels{pop_view_entry(channels, this->currentChannel->channelId())};
while(entry_channels.front()) entry_channels.push_front(pop_view_entry(channels, entry_channels.front()->parentId()));
entry_channels.pop_front();
@ -694,10 +693,8 @@ void ConnectedClient::sendChannelList(bool lock_channel_tree) {
send_channels(this, entry_channels.begin(), entry_channels.end(), true);
this->notifyClientEnterView(_this.lock(), nullptr, "", this->currentChannel, ViewReasonId::VREASON_SYSTEM, nullptr, false); //Notify self after path is send
*/
send_channels(this, channels.begin(), channels.end(), false);
this->notifyClientEnterView(_this.lock(), nullptr, "", this->currentChannel, ViewReasonId::VREASON_SYSTEM, nullptr, false); //Notify self after path is send
//this->notifyClientEnterView(_this.lock(), nullptr, "", this->currentChannel, ViewReasonId::VREASON_SYSTEM, nullptr, false); //Notify self after path is send
this->sendCommand(Command("channellistfinished"));
}