diff --git a/Telegram/SourceFiles/history/history_inner_widget.cpp b/Telegram/SourceFiles/history/history_inner_widget.cpp index a88062abc..089fcf6ef 100644 --- a/Telegram/SourceFiles/history/history_inner_widget.cpp +++ b/Telegram/SourceFiles/history/history_inner_widget.cpp @@ -3168,6 +3168,10 @@ void HistoryInner::addToSelection( not_null item) const { const auto i = toItems->find(item); if (i == toItems->cend()) { + if (toItems->size() == 1 + && toItems->begin()->second != FullSelection) { + toItems->clear(); + } toItems->emplace(item, FullSelection); } else if (i->second != FullSelection) { i->second = FullSelection;