mirror of https://github.com/procxx/kepka.git
Fix removing pinned dialog from folder.
This commit is contained in:
parent
735f7709b9
commit
b095091d03
|
@ -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…
Reference in New Issue