| 432 | } |
| 433 | |
| 434 | void Entry::removeFromChatList( |
| 435 | FilterId filterId, |
| 436 | not_null<MainList*> list) { |
| 437 | if (isPinnedDialog(filterId)) { |
| 438 | owner().setChatPinned(this, filterId, false); |
| 439 | } |
| 440 | if (filterId) { |
| 441 | const auto it = _tagColors.find(filterId); |
| 442 | if (it != end(_tagColors)) { |
| 443 | _tagColors.erase(it); |
| 444 | } |
| 445 | } |
| 446 | |
| 447 | const auto i = _chatListLinks.find(filterId); |
| 448 | if (i == end(_chatListLinks)) { |
| 449 | return; |
| 450 | } |
| 451 | _chatListLinks.erase(i); |
| 452 | list->removeEntry(this); |
| 453 | } |
| 454 | |
| 455 | void Entry::removeChatListEntryByLetter(FilterId filterId, QChar letter) { |
| 456 | const auto i = _chatListLinks.find(filterId); |
no test coverage detected