Fix removing pinned dialog from folder.

This commit is contained in:
John Preston 2020-03-29 12:33:55 +04:00
parent 735f7709b9
commit b095091d03

View file

@ -230,6 +230,10 @@ not_null<Row*> Entry::addToChatList(
void Entry::removeFromChatList(
FilterId filterId,
not_null<MainList*> list) {
if (isPinnedDialog(filterId)) {
owner().setChatPinned(_key, filterId, false);
}
const auto i = _chatListLinks.find(filterId);
if (i == end(_chatListLinks)) {
return;