mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-03 16:15:13 +00:00
Fix removing pinned dialog from folder.
This commit is contained in:
@@ -230,6 +230,10 @@ not_null<Row*> Entry::addToChatList(
|
|||||||
void Entry::removeFromChatList(
|
void Entry::removeFromChatList(
|
||||||
FilterId filterId,
|
FilterId filterId,
|
||||||
not_null<MainList*> list) {
|
not_null<MainList*> list) {
|
||||||
|
if (isPinnedDialog(filterId)) {
|
||||||
|
owner().setChatPinned(_key, filterId, false);
|
||||||
|
}
|
||||||
|
|
||||||
const auto i = _chatListLinks.find(filterId);
|
const auto i = _chatListLinks.find(filterId);
|
||||||
if (i == end(_chatListLinks)) {
|
if (i == end(_chatListLinks)) {
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user