mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-08 08:04:08 +02:00
Fix removing pinned dialog from folder.
This commit is contained in:
parent
735f7709b9
commit
b095091d03
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue