2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-10-25 15:16:15 +00:00

Move to std::optional.

This commit is contained in:
John Preston
2018-09-21 19:28:46 +03:00
parent 850efbde95
commit 2e5a0e056c
115 changed files with 632 additions and 672 deletions

View File

@@ -250,7 +250,7 @@ void Feed::changeChannelsList(
// After that we restore it.
const auto oldLastMessage = base::take(_lastMessage);
for (const auto channel : add) {
_lastMessage = base::none;
_lastMessage = std::nullopt;
channel->setFeed(this);
}
_lastMessage = oldLastMessage;
@@ -282,7 +282,7 @@ void Feed::historyCleared(not_null<History*> history) {
}
void Feed::recountLastMessage() {
_lastMessage = base::none;
_lastMessage = std::nullopt;
for (const auto history : _channels) {
if (!history->lastMessageKnown()) {
_parent->session().api().requestDialogEntry(this);